Created
December 15, 2015 16:59
-
-
Save JohannesBuchner/62fc88277709bb29f9e7 to your computer and use it in GitHub Desktop.
rsync loop that updates remote directory when local directory changes (using inotify)
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 -avz ./ user@host:remote/directory/ | |
inotifywait -r ./ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment