Skip to content

Instantly share code, notes, and snippets.

@orlissenberg
Created August 3, 2015 07:34
Show Gist options
  • Save orlissenberg/b87eca60dd9687f7a202 to your computer and use it in GitHub Desktop.
Save orlissenberg/b87eca60dd9687f7a202 to your computer and use it in GitHub Desktop.
Continuous rsync.
#!/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