4 ms·
while inotifywait -e modify -e create -e delete -e move -r $1; do rsync -vrae 'ssh -p 2299' --delete $1 noentrar@noentrar.net:files/$2 done Here yo
by mariocesar 15y ago
while inotifywait -e modify -e create -e delete -e move -r $1; do
rsync -vrae 'ssh -p 2299' --delete $1 noentrar@noentrar.net:files/$2
done
Here you have → https://forrst.com/posts/Two_10_seconds_scripts_to_keep_your_data_synchro-BBg https://forrst.com/posts/Two_10_seconds_scripts_to_keep_your...
I made this long time ago, the same concept just with inotify, to don't abuse the my small bandwith