Hallo zusammen,
ich habe mein Backupsystem überarbeitet und benutze nun rsnapshot zum regelmäßigen Erstellen von Sicherungen. Ich habe zwei Sicherungsziele genannt "Besekammer" und "Home". Ersteres funktioniert wie erwartet zweiteres, schlägt fehlt weil es schreinbar mehrfach parallel ausgeführt wird, mir ist aber absolut nicht klar warum. Zunächst ein Auszug aus meiner crontab:
Der Job für Besenkammer läuft wie gesagt problemlos durch, der für home erzeugt jedoch für Fehler ich erhalte 2! Mails von cron mit:
Betreff: Cron <root@cube> /root/scripts/backup/rsnapshot_home.sh daily
Betreff: Cron <root@cube> /root/scripts/backup/rsnapshot_home.sh weekly
Laut crontab dürften aber beide Jobs niemals zeitgleich gestartet werden, zumindest nicht von cron und vor allem sollte der weekly-Job nur sonntags laufen ich bekomme die Mail aber *jeden* Tag. Hat jemand eine Idee warum?
ich habe mein Backupsystem überarbeitet und benutze nun rsnapshot zum regelmäßigen Erstellen von Sicherungen. Ich habe zwei Sicherungsziele genannt "Besekammer" und "Home". Ersteres funktioniert wie erwartet zweiteres, schlägt fehlt weil es schreinbar mehrfach parallel ausgeführt wird, mir ist aber absolut nicht klar warum. Zunächst ein Auszug aus meiner crontab:
Code:
# backup daily except sunday and 1st of the month
0 6 2-31 * 1-6 /root/scripts/backup/rsnapshot_besenkammer.sh daily
55 6 2-31 * 1-6 /root/scripts/backup/rsnapshot_home.sh daily
# backup weekly on sunday except 1st of the month
0 6 2-31 * 0 /root/scripts/backup/rsnapshot_besenkammer.sh weekly
55 6 2-31 * 0 /root/scripts/backup/rsnapshot_home.sh weekly
# backup monthly on the 1st day the month
0 6 1 * * /root/scripts/backup/rsnapshot_besenkammer.sh monthly
55 6 1 * * /root/scripts/backup/rsnapshot_home.sh monthly
Der Job für Besenkammer läuft wie gesagt problemlos durch, der für home erzeugt jedoch für Fehler ich erhalte 2! Mails von cron mit:
Betreff: Cron <root@cube> /root/scripts/backup/rsnapshot_home.sh daily
Code:
Setting locale to POSIX "C"
----------------------------------------------------------------------------
rsnapshot encountered an error! The program was invoked with these options:
/usr/bin/rsnapshot -c /root/scripts/backup/rsnapshot.home.conf daily
----------------------------------------------------------------------------
ERROR: Lockfile /var/run/rsnapshot.home.pid exists and so does its process, can not continue
/usr/bin/logger -i -p user.err -t rsnapshot /usr/bin/rsnapshot -c \
/root/scripts/backup/rsnapshot.home.conf daily: ERROR: Lockfile \
/var/run/rsnapshot.home.pid exists and so does its process, can not \
continue
Betreff: Cron <root@cube> /root/scripts/backup/rsnapshot_home.sh weekly
Code:
USB set configuration Device or resource busy
mount: /dev/sdd1 is already mounted or /mnt/backup_home busy
/dev/sdd1 is already mounted on /mnt/backup_home
Setting locale to POSIX "C"
echo 15970 > /var/run/rsnapshot.home.pid
/mnt/backup_home/weekly.4 not present (yet), nothing to delete
/mnt/backup_home/weekly.3 not present (yet), nothing to rotate
/mnt/backup_home/weekly.2 not present (yet), nothing to rotate
/mnt/backup_home/weekly.1 not present (yet), nothing to rotate
/mnt/backup_home/weekly.0 not present (yet), nothing to rotate
/mnt/backup_home/daily.6 not present (yet), nothing to copy
rm -f /var/run/rsnapshot.home.pid
/usr/bin/logger -i -p user.info -t rsnapshot /usr/bin/rsnapshot -c \
/root/scripts/backup/rsnapshot.home.conf weekly: completed successfully
umount: /mnt/backup_home/: not mounted
Laut crontab dürften aber beide Jobs niemals zeitgleich gestartet werden, zumindest nicht von cron und vor allem sollte der weekly-Job nur sonntags laufen ich bekomme die Mail aber *jeden* Tag. Hat jemand eine Idee warum?