May 302013

A shell script that keeps running rsync in a loop until a file is created to stop it. Obviously not the right way to do such things, but good enough for a quickie.

Create /tmp/stoprsync to stop it. rsync --status is needed in order to check if any files were transferred the previous run.