<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hallo Hannes<br>
<br>
"man 5 crontab" is your friend ;-)<br>
<br>
<div class="moz-cite-prefix">Am 12.07.2019 um 10:56 schrieb Hannes
Hutmacher via rsync:<br>
</div>
<blockquote type="cite"
cite="mid:trinity-1f6cb61e-cd90-45d3-a0a9-e3bbcf8eecb2-1562921799343@3c-app-webde-bap62">
<div>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?
<div> </div>
<div>This is my rsync command: rsync -azc --delete
"$QUELLORDNER" "$ZIELORDNER" </div>
<div>This is the entry in cron (crontab -e): * 2 * * *
/root/backupscript/backup.sh</div>
<div>Data to sync: 18 Gb, 185.000 files.</div>
</div>
</blockquote>
<br>
wrong crontab entry: every minute you start a new rsync process ...<br>
<br>
crontab syntax:<code class="block"><strong> 1 2 3 4 5 command</strong><br>
<br>
field allowed values<br>
----- --------------<br>
1 minute 0-59<br>
2 hour 0-23<br>
3 day of month 1-31<br>
4 month 1-12 (or names, see below)<br>
5 day of week 0-7 (0 or 7 is Sun, or use names)<br>
<br>
command = command to be run<br>
<br>
Good luck<br>
-- Beat<br>
</code>
</body>
</html>