Rsync a remote directory to a local one

Basic rsyncing:

 #!/bin/bash
 rsync -avz --delete --exclude= --exclude=remotehost.com:/the/remote/directory/ /the/local/dir

 

Tags

Related Posts

Share This