Rsync a remote directory to a local one February 29, 2012 RLByrd Snippets, bash snippets, Systems Basic rsyncing: #!/bin/bash rsync -avz --delete --exclude= --exclude=remotehost.com:/the/remote/directory/ /the/local/dir Related posts: Basic connectivity tests through firewalls Show all grants Convert charset in all schemas within an instance Run queries on all DB instances Dedupe example