Skip to content

Instantly share code, notes, and snippets.

@grantbachman
Last active August 29, 2015 14:12
Show Gist options
  • Save grantbachman/c96f0d3d18bef535404b to your computer and use it in GitHub Desktop.
Save grantbachman/c96f0d3d18bef535404b to your computer and use it in GitHub Desktop.
rsync command using .pem SSH credentials
# This command demostrates how to send a directory to a remote server that uses .pem ssh credentials
# It also excludes the virtual_env directory within source_directory.
rsync -azvv -e "ssh -i /path/to/ssh-key.pem" --exclude "virtual_env" /path/to/source_directory/ ec2-user@ec2-ip-address.region.compute.amazonaws.com:target_directory/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment