Skip to content

Instantly share code, notes, and snippets.

@ReidWilliams
Last active November 2, 2017 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ReidWilliams/869b1eaddc0c054a7a6859b553edbe99 to your computer and use it in GitHub Desktop.
Save ReidWilliams/869b1eaddc0c054a7a6859b553edbe99 to your computer and use it in GitHub Desktop.
rsync a repo
while true; do rsync -e "ssh -i /PATH/TO/PRIVATE/KEY.pem" -azvh --delete ./LOCAL-REPO/ ec2-user@IP:/REMOTE/PATH; sleep 2; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment