Skip to content

Instantly share code, notes, and snippets.

@amalrik
Forked from alotaiba/gist:913313
Last active December 22, 2015 09:59
Show Gist options
  • Save amalrik/6455567 to your computer and use it in GitHub Desktop.
Save amalrik/6455567 to your computer and use it in GitHub Desktop.
rsync -avz /path/to/local/sync/folder -e "ssh -i /path/to/ssh/id_rsa" ubuntu@ec2instance:/path/to/remote/sync/folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment