2 # This is the driver script that actually runs backups.
5 PATH=/usr/local/lib/backup:$PATH export PATH
7 if [ "x$1" != test ]; then
12 rm -f this-status p p2
13 echo 'FAILED to start dump script' >this-status
15 # Here we go : run 'full', which (name notwithstanding) handles
16 # both full and incremental backups, according to the ID of the
18 full 2>&1 | tee this-log
20 status=`cat this-status 2>/dev/null`
22 # Mail a report to somewhere appropriate; -odq removed (means just
23 # queue message, don't try to deliver) because it just delays the
24 # message (you might want that if mail was one of the services turned
25 # off for the duration of the backup, though).
26 cat <<END - this-log | /usr/lib/sendmail -oi -om -t
27 To: dump-reports@mnementh.local
28 Subject: Dump Report: $status
34 # Local hack for DAT drive on kuzuth: when done, eject the tape -- PMM
37 if [ "x$1" != test ]; then
38 # Bring the system up as multiuser again