Limit rsync running time

Fabian Cenedese
2009-09-17T12:48:07Z

Hi

I'd like to rsync a large amount of data over a slow connection,
but only during night hours. I couldn't find a parameter that limits
the time that rsync is running, only the timeout on idle time.
I guess the way to go would be to start rsync, get the process
ID and kill the process later on.

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.

Thanks

bye  Fabi