Last active
November 2, 2017 02:48
-
-
Save ReidWilliams/869b1eaddc0c054a7a6859b553edbe99 to your computer and use it in GitHub Desktop.
rsync a repo
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
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