#!/bin/sh BL=~/.backup_log echo "Starting Backup" >> $BL date >> $BL # sa0 is the default, but this is just to be sure mt -f /dev/rsa0 rewind # tried to turn on compression, but does not seem to work # mt comp on # list of directories to back up list="/etc /usr/local/etc/ /home/ /export/" # tar a backup to the raw tape device tar -czf - ${list} | dd of=/dev/rsa0 obs=20b >> $BL