#!/bin/bash # /etc/cron.daily/backup # mount disks and run dirvish # KHL October 6, 2003 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin BACKUPDRIVELOG=/var/log/backup_drivelog # mount the backup drive /bin/mount /dev/backup /backup # log the backup drive echo `/bin/cat /backup/DISKLABEL` `/bin/date` >> $BACKUPDRIVELOG # do the backup itself /usr/local/sbin/dirvish-runall #unmount backups for safety /bin/umount /dev/backup