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
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
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 type > of operation.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 --markc
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 if >> there was anything native in rsync for this type >> of operation. > > 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 ... etcThis would not help, regarding i/o. Viele Gruesse Eberhard Moenkeberg (emoenke at gwdg.de, em at kki.org) -- Eberhard Moenkeberg Arbeitsgruppe IT-Infrastruktur E-Mail: emoenke at gwdg.de Tel.: +49 (0)551 201-1551 ------------------------------------------------------------------------- Gesellschaft fuer wissenschaftliche Datenverarbeitung mbH Goettingen (GWDG) Am Fassberg 11, 37077 Goettingen URL: gwdg.de E-Mail: gwdg at gwdg.de Tel.: +49 (0)551 201-1510 Fax: +49 (0)551 201-2150 Geschaeftsfuehrer: Prof. Dr. Bernhard Neumair Aufsichtsratsvorsitzender: Dipl.-Kfm. Markus Hoppe Sitz der Gesellschaft: Goettingen Registergericht: Goettingen Handelsregister-Nr. B 598 -------------------------------------------------------------------------