rsync sleep

2010-06-06 Thread Mag Gam
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. TIA -- Please use reply-all for most replies to avoid omitting the

Re: rsync sleep

2010-06-06 Thread Benjamin R. Haskell
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

Re: rsync sleep

2010-06-06 Thread Mark Constable
On Mon, 7 Jun 2010 4:07:22 am Mag Gam wrote: Is it possible to sleep 1 second after each file is rsynced? Interesting idea but not that I know of. 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

Re: rsync sleep

2010-06-06 Thread Eberhard Moenkeberg
Hi, On Mon, 7 Jun 2010, Mark Constable wrote: On Mon, 7 Jun 2010 4:07:22 am Mag Gam wrote: Is it possible to sleep 1 second after each file is rsynced? Interesting idea but not that I know of. Ofcourse, I can put this in a for loop and do a sleep after each file is done, I was wondering

Re: rsync sleep

2010-06-06 Thread Mark Constable
On 2010-06-07, Eberhard Moenkeberg wrote: Is it possible to sleep 1 second after each file is rsynced? If you are concerned about giving the rest of the system some time to breathe then just nice the rsync process. nice -n 19 rsync ... etc This would not help, regarding i/o. Care

Re: rsync sleep

2010-06-06 Thread Eberhard Moenkeberg
Hi, On Mon, 7 Jun 2010, Mark Constable wrote: On 2010-06-07, Eberhard Moenkeberg wrote: Is it possible to sleep 1 second after each file is rsynced? If you are concerned about giving the rest of the system some time to breathe then just nice the rsync process. nice -n 19 rsync ... etc

Re: rsync sleep

2010-06-06 Thread Mag Gam
I am more concerned with write penalty. We use netApps, and if there is a huge write (10gb file) i would like to give the filer to recover before I can start syncing more data. bandwidth isn't the issue. On Sun, Jun 6, 2010 at 6:18 PM, Eberhard Moenkeberg emoe...@gwdg.de wrote: Hi, On Mon,

Re: rsync sleep

2010-06-06 Thread Mark Constable
On 2010-06-07, Mag Gam wrote: I am more concerned with write penalty. We use netApps, and if there is a huge write (10gb file) i would like to give the filer to recover before I can start syncing more data. Perhaps as Eberhard suggested, ionice might be useful and is part of the util-linux-ng