I have written a patch for rsync-2.6.1pre-2 which adds a --time-limit=T option. When this option is used rsync will stop after T minutes and exit. I think this option is useful when rsyncing a large amount
Okay, nice thing. What about
$ echo "killall rsync" | at midnight
Of couse, you can make that a bit more flexible if you've got several concurrent rsync running (by using their PID and checking it before killing it to actually be a rsync instance)...
That's more or less the "ugly hack" referred to previously. It does work as expected, but personally, I'd rather there were a native rsync method of achieving this. Less kludgy.
DJFM
-- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html