All pastes #742947 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-19 23:07 UTC
rendered paste body
#!/bin/sh

mount /dev/da0s1d /backup

if [ "$1" = "incremental" ] ; then
   body=`/usr/local/scripts/incrementsnapshot.sh`
   subject="Incremental Backup Process"
   echo "$body" |mail -s "$subject" root
elif [ "$1" = "full" ] ; then
   body=`/usr/local/scripts/fullsnapshot.sh`
   subject="Full Backup Process"
   echo "$body" |mail -s "$subject" root
else
   echo "There was a problem running the backup script. Nothing was done." |mail -s "Backup Error!" root
fi