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
|
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to