|
|
|
|
|
by dansimau
4708 days ago
|
|
A simpler (and more efficient) equivalent to this script would be this one-liner: while true; do rsync -azP $PWD/ <remote>:$PWD/; sleep 2; done
Or even better: https://code.google.com/p/lsyncd/lsyncd uses inotify/fsevents, meaning you don't have to traverse the filesystem to poll for changes. |
|