Skip to content

Instantly share code, notes, and snippets.

@alotaiba
Created April 11, 2011 10:06
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save alotaiba/913313 to your computer and use it in GitHub Desktop.
Save alotaiba/913313 to your computer and use it in GitHub Desktop.
Using rsync to sync files to an Amazon EC2 instance using SSH key
rsync -avz /path/to/local/sync/folder -e "ssh -i /path/to/ssh/key" ubuntu@ec2instance:/path/to/remote/sync/folder
@tanaysuthar
Copy link

tanaysuthar commented Mar 10, 2017

how rsync works from Ubuntu to Windows server scenario ?

rsync -avz /tmp/* administrator@54.175.177.128:/cygdrive/c/

Above command is not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment