Skip to content

Instantly share code, notes, and snippets.

@alaahd
Created January 20, 2013 07:22
Show Gist options
  • Save alaahd/4577138 to your computer and use it in GitHub Desktop.
Save alaahd/4577138 to your computer and use it in GitHub Desktop.
Rsync "optimised"
rsync -vrz --ignore-existing --size-only -e "ssh -i /Users/mark/id_rsa-readonly" readonly@1.1.1.1:/var/www/project/images/2012 /var/www/project/images/
//note the the source has no trailing slash
// target has a trailing slash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment