#!/bin/sh # This is the driver script that actually runs backups. cd /var/local/backup PATH=/usr/local/lib/backup:$PATH export PATH if [ "x$1" != test ]; then stty sane stty -isig fi rm -f this-status p p2 echo 'FAILED to start dump script' >this-status # Here we go : run 'full', which (name notwithstanding) handles # both full and incremental backups, according to the ID of the # tape in the drive. full 2>&1 | tee this-log status=`cat this-status 2>/dev/null` # Mail a report to somewhere appropriate; -odq removed (means just # queue message, don't try to deliver) because it just delays the # message (you might want that if mail was one of the services turned # off for the duration of the backup, though). cat <