rsync sleep

Benjamin R. Haskell rsync at benizi.com
Sun Jun 6 12:54:08 MDT 2010


On Sun, 6 Jun 2010, Mag Gam wrote:

> Is it possible to sleep 1 second after each file is rsynced?
> 
> Ofcourse, I can put this in a for loop and do a sleep after each file 
> is done, I was wondering if there was anything native in rsync for 
> this type of operation.

If you're trying not to hog bandwidth, there's the --bwlimit=KBPS 
option.  E.g. to not use more than 20KB/s:
rsync --bwlimit=20 src/ dest/

Otherwise, what are you trying to achieve by sleeping 1 second after 
each file?

-- 
Best,
Ben


More information about the rsync mailing list