Hallo.
nun habe ich folgende Problem, ich will meine Filme zyklisch auf eine andere Platte sichern.
Crontab:
Code
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test-x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report/etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report/etc/cron.monthly )
02 18 * * 1,0,3 root /var/Synchronisation/archive-filme.sh # Fimsicherung jeden Sonntag, Mittwoch 2 Uhr früh
Die File dich ich aufrufe:
Code
echo $(date) "Film-Synchronisation START" >> Sync.log
rsync -r -t -p -o -g -v --progress --size-only --partial -s --delete /daten/video-dir/filme/ /Archive/Film-Sicherung/video-dir/filme/
echo $(date) "Film-Synchronisation ENDE " >> Sync.log
Und die syslog Ausgabe:
Code
Aug 29 18:01:12 VDR-Server vdr: [3491] channel 15 (VOX Austria) event Mo. 29.08.2016 18:00-19:00 'mieten, kaufen, wohnen' status 4
Aug 29 18:02:01 VDR-Server CRON[14419]: (root) CMD (/var/Synchronisation/archive-filme.sh # Fimsicherung jeden Sonntag, Mittwoch 2 Uhr fr\303\274h)
Aug 29 18:02:34 VDR-Server vdr: [3491] channel 11 (ZDF) event Mo. 29.08.2016 17:45-18:05 (VPS: 29.08. 17:45) 'Leute heute' status 1
Wenn ich den Sript manuell aufrufe funktioniert er. Er sichert und schreibt in die eigene Logfile.
Nach dem Aufruf durch Cron steht aber nichts im Sync.log. Die erforderlichen Rechte habe ich gesetzt.
Bitte um einen Tipp.
Danke
hansp