I am using rsync in a situation where the amount of bwlimit I want to use changes depending on the time of day. for example, I start rsync at 2am when no-one else is using the system, so I want it to use 100k/sec. At 9am, it is still running, but as the bandwidth of the link it's using now needs to be shared with other users, I would like rsync to only use 10k/sec. Any way of doing this without stopping and restarting it. Thanks, Craig. -------------- next part -------------- HTML attachment scrubbed and removed
On Fri, Mar 03, 2006 at 06:33:37PM +1100, Craig Hammond wrote:> Any way of doing this without stopping and restarting it.One possibility is to setup IP prioritization on your network so that rsync can use as much free bandwidth as possible until higher priority packets cause it to slow down. If that's not possible, you'll need to code something to make rsync vary its bandwidth limit, perhaps by adding a call at the start of each file transfer to check on the time and change both bwlimit_writemax and bwlimit. ..wayne..