Last active
August 29, 2015 14:12
-
-
Save grantbachman/c96f0d3d18bef535404b to your computer and use it in GitHub Desktop.
rsync command using .pem SSH credentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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