Cordial
15.02.07, 13:09
Hallo zsam,
Ich habe letztens mal auf unseren Linuxserver geschaut und festgestellt, dass ich nirgendwo sehen kann, ob die Sicherung erfolgreich war. Ich weiss, dass es per Befehl irgendwo in Crontab eingetragen werden muss?
Ich habe zwei Dateien gefunden, die evtl. dafür wichtig wären. Kann mir da jemand weiterhelfen?
Crontab.dat:
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root
#-* * * * * root test -x /usr/sbin/atrun && /usr/sbin/atrun
0 21 * * * root test -x /usr/sbin/faxqclean && /usr/sbin/faxqclean
5 22 * * * root test -x /usr/sbin/texpire && /usr/sbin/texpire
25 23 * * * root test -e /usr/sbin/faxcron && sh /usr/sbin/faxcron | mail FaxMaster
#
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
#
-*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons
0 0 * * * root rm -f /var/spool/cron/lastrun/cron.daily
0 0 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
0 0 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
# synch non-raided disks
0 3 * * * root /root/bin/do_resync
# Daily Backup
0 23 * * * root /root/bin/daily_backup
0 5 * * * root /usr/bin/mt offline /dev/st0
# Zeitsynchronisation
0 7 * * 7 root /root/bin/clock_sync
# Zugrifsrechte für /public/daten/
0 4 * * * root chmod -Rc 775 /public/daten/*
Daily_backup.dat:
#!/bin/bash
#
# DAily BAckup to Tape
# start from crontab
#
/usr/bin/mt status -f/dev/st0
/bin/tar -czvf /dev/st0 /public/daten/* -X/etc/tar-exclude
# Eject Tape
# /usr/bin/mt rewoffl -f/dev/st0
Ich habe letztens mal auf unseren Linuxserver geschaut und festgestellt, dass ich nirgendwo sehen kann, ob die Sicherung erfolgreich war. Ich weiss, dass es per Befehl irgendwo in Crontab eingetragen werden muss?
Ich habe zwei Dateien gefunden, die evtl. dafür wichtig wären. Kann mir da jemand weiterhelfen?
Crontab.dat:
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root
#-* * * * * root test -x /usr/sbin/atrun && /usr/sbin/atrun
0 21 * * * root test -x /usr/sbin/faxqclean && /usr/sbin/faxqclean
5 22 * * * root test -x /usr/sbin/texpire && /usr/sbin/texpire
25 23 * * * root test -e /usr/sbin/faxcron && sh /usr/sbin/faxcron | mail FaxMaster
#
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
#
-*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons
0 0 * * * root rm -f /var/spool/cron/lastrun/cron.daily
0 0 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
0 0 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
# synch non-raided disks
0 3 * * * root /root/bin/do_resync
# Daily Backup
0 23 * * * root /root/bin/daily_backup
0 5 * * * root /usr/bin/mt offline /dev/st0
# Zeitsynchronisation
0 7 * * 7 root /root/bin/clock_sync
# Zugrifsrechte für /public/daten/
0 4 * * * root chmod -Rc 775 /public/daten/*
Daily_backup.dat:
#!/bin/bash
#
# DAily BAckup to Tape
# start from crontab
#
/usr/bin/mt status -f/dev/st0
/bin/tar -czvf /dev/st0 /public/daten/* -X/etc/tar-exclude
# Eject Tape
# /usr/bin/mt rewoffl -f/dev/st0