Skip to content

Instantly share code, notes, and snippets.

View Davidnet's full-sized avatar
🦔

David Cardozo Davidnet

🦔
View GitHub Profile
@Davidnet
Davidnet / rsync-watch.sh
Created July 7, 2021 17:49 — forked from cgarciae/rsync-watch.sh
rsync project to server
rsync --exclude-from=.gitignore -avz -e ssh . $1
while inotifywait -r -e modify,create,delete . ; do
rsync --exclude-from=.gitignore -avz --delete -e ssh . $1
done