Skip to content

Instantly share code, notes, and snippets.

@sajadtorkamani
Last active August 28, 2018 12:50
Show Gist options
  • Save sajadtorkamani/30492ab4b00b74facf18a11e31457396 to your computer and use it in GitHub Desktop.
Save sajadtorkamani/30492ab4b00b74facf18a11e31457396 to your computer and use it in GitHub Desktop.
rsync

Simplest way

rsync -avz --progress <resource> <username>@<ip>:<destination>

Using AWS pem file

rsync -avL --progress -e "ssh -i ~/Downloads/AWS/WEB1/Keys/WEB1.pem" \
/var/www/html/eisa/wp-content/uploads/* \
ubuntu@<ip-address>:/var/www/eisa/wp-content/uploads/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment