Created
August 3, 2015 07:34
-
-
Save orlissenberg/b87eca60dd9687f7a202 to your computer and use it in GitHub Desktop.
Continuous rsync.
This file contains hidden or 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
#!/usr/bin/env bash | |
# https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories-on-a-vps | |
while true ; do | |
rsync -aP /vagrant/projects/a-project/ /srv/www//a-project | |
sleep 2 # seconds | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment