home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume1 / 8707 / 32 / weekback < prev   
Text File  |  1990-07-13  |  558b  |  20 lines

  1. TD=/dev/9hi            # name of default tape drive
  2. FSFILT=/usr/local/etc/fsfilt    # location of fsfilt program
  3. echo "Who should be notified upon completion? \c"
  4. read NOTIFY
  5. set `cat /etc/mountable | sort -r`
  6. for fsys in $*
  7. do
  8.     fsys=$2
  9.     fnam=$3
  10.     echo "Mount the backup for $fnam and press RETURN \c"
  11.     read return
  12.     cd $fnam
  13.     find . -print | $FSFILT | cpio -ocvB >$TD
  14.     (echo "backups of $fnam are complete") | write $NOTIFY
  15.     echo "backups of $fnam are complete"
  16.     shift 3 2>/dev/null
  17. done
  18. touch /usr/local/etc/DAY.DONE
  19. (echo "backups have been completed") | write $NOTIFY
  20.