3 ms·
Is this just a way to trigger rsync every time a change happens to a given folder? Looks like this command powers it: rsync -rav --stats --log-file=/home/$U
by audionerd 15y ago
Is this just a way to trigger rsync every time a change happens to a given folder?
Looks like this command powers it:
rsync -rav --stats --log-file=/home/$USER_NAME/.lipsyncd/lipsyncd.log -e "ssh -l $USER_NAME -p $SSH_PORT" --delete $REMOTE_HOST:$LOCAL_DIR $REMOTE_DIR
Couldn't you just toss that in a Guardfile and get the same effect?
https://github.com/guard/guard/
Or am I oversimplifying it?
- mariocesar 15y agowhile 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