rsync many processes and slow backup

rsync at juckers.ch rsync at juckers.ch
Fri Jul 12 09:40:39 UTC 2019


Hallo Hannes

"man 5 crontab" is your friend ;-)

Am 12.07.2019 um 10:56 schrieb Hannes Hutmacher via rsync:
> But, when I add the script in cron to start it at 1am at night it 
> takes 7 - 9 hours and I see up to 180 processes. When I look in top I 
> see a hight load of 60 - 80 and 40 - 60 waits. Why? Can someone 
> explain why it takes so long when it starts with cron?
> This is my rsync command:  rsync -azc --delete "$QUELLORDNER" 
> "$ZIELORDNER"
> This is the entry in cron (crontab -e): * 2 * * * 
> /root/backupscript/backup.sh
> Data to sync: 18 Gb, 185.000 files.

wrong crontab entry: every minute you start a new rsync process ...

crontab syntax:|*1 2 3 4 5 command*

               field          allowed values
               -----          --------------
           1   minute         0-59
           2   hour           0-23
           3   day of month   1-31
           4   month          1-12 (or names, see below)
           5   day of week    0-7 (0 or 7 is Sun, or use names)

           command = command to be run

Good luck
-- Beat
|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20190712/ab3ab1e4/attachment.htm>


More information about the rsync mailing list