Limit rsync running time

Paul Slootman paul+rsync at
Thu Sep 17 07:14:04 MDT 2009

On Thu 17 Sep 2009, Fabian Cenedese wrote:
> Has anybody already written a bash script that would do something
> like that? Are there other ways? I don't want to kill all rsync
> processes as there might be other syncs going on.

There is for example a "timeout" package available in Debian:

Package: timeout
Description: run a command with a time limit
 timeout executes a command and imposes an elapsed time limit. When the time
 limit is reached, timeout sends a predefined signal to the target process.

So use that:

$ timeout 7200 rsync ....

That will kill rsync after 2 hours (7200 seconds).


More information about the rsync mailing list