Skip to content

Instantly share code, notes, and snippets.

@adrianwebb
Last active August 29, 2015 14:14
Show Gist options
  • Save adrianwebb/d5dfff325b2150820b7d to your computer and use it in GitHub Desktop.
Save adrianwebb/d5dfff325b2150820b7d to your computer and use it in GitHub Desktop.
Remote rsync command template
rsync -avz --exclude "{DIR}" -e "ssh -i {PRIV_KEY} -p {PORT}" {LOCAL_DIR}/ {USER}@{IP}:{REMOTE_DIR}/
@adrianwebb
Copy link
Author

Don't forget the trailing slashes on directories!

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