Skip to content

Instantly share code, notes, and snippets.

View davidfregoli's full-sized avatar
🐀
Learning Go

David Fregoli davidfregoli

🐀
Learning Go
View GitHub Profile
@JohannesBuchner
JohannesBuchner / rsync_on_change.sh
Created December 15, 2015 16:59
rsync loop that updates remote directory when local directory changes (using inotify)
while true
do
rsync -avz ./ user@host:remote/directory/
inotifywait -r ./
done