rsync aus crontab
Moin zusammen,
ich habe eine kleine Schwierigkeit und hoffe auf Klärung:
Ich habe eine /etc/rsnapshot.conf, in der scheinbar ein paar Zeichen
nicht schön sind, denn ich bekomme beim Ausführen von
/usr/bin/rsnapshot daily
in /var/log/rsnapshot diese Einträge:
[06/Oct/2009:18:28:46] /usr/bin/rsnapshot daily: ERROR:
---------------------------------------------------------------------
[06/Oct/2009:18:28:46] /usr/bin/rsnapshot daily: ERROR: Errors were
found in /etc/rsnapshot.conf,
[06/Oct/2009:18:28:46] /usr/bin/rsnapshot daily: ERROR: rsnapshot can
not continue. If you think an entry looks right, make
[06/Oct/2009:18:28:46] /usr/bin/rsnapshot daily: ERROR: sure you don't
have spaces where only tabs should be.
[06/Oct/2009:18:29:42] /usr/bin/rsnapshot daily: started
[06/Oct/2009:18:29:42] echo 17183 > /var/run/rsnapshot.pid
An den letzten Zeilen (und natürlich am Ergebnis) sieht man aber, dass
rsync läuft.
Wie üblich, möchte ich den Job automatisieren und habe deshalb meine
crontab folgendermaßen ergänzt:
0 20 * * 1-4 root /usr/bin/rsnapshot daily
59 23 * * 5 root /usr/bin/rsnapshot weekly
Das funktioniert auch, aber rsync läuft nicht:
[06/Oct/2009:20:00:01] /usr/bin/rsnapshot daily: ERROR:
---------------------------------------------------------------------
[06/Oct/2009:20:00:01] /usr/bin/rsnapshot daily: ERROR: Errors were
found in /etc/rsnapshot.conf,
[06/Oct/2009:20:00:01] /usr/bin/rsnapshot daily: ERROR: rsnapshot can
not continue. If you think an entry looks right, make
[06/Oct/2009:20:00:01] /usr/bin/rsnapshot daily: ERROR: sure you don't
have spaces where only tabs should be.
Danach ist Schluss. Ich habe gelesen, dass der rsync-Aufruf in der
user-crontab mit crontab -e eingetragen werden kann. Mag sein, dass das
dann geht, aber es müsste doch auch aus der 'normalen' crontab gehen, oder?
Außerdem ist die Meldung bezüglich des Fehlers in der conf irgendwie
unschön. Ich meine wirklich, sehr gewissenhaft nach Blanks gesucht zu
haben....
Grüße,
Boris
Reply to: