#!/bin/sh
#This program is used notify user(s) of the status of the backup
#upon completion.  If you don't want to notify anyone, don't put
#code in below the variables.

RABDIR="/versyss/rab"                 # Where the remote autobackup files are
RABOUT="${RABDIR}/rautobak.out"    # File for details of the last backup
RABLOG="${RABDIR}/rautobak.log"    # File for summary of start and stop of B/Us
TEMPLOG="${RABDIR}/temp.log$$"    # A work file to make rautobak.log smaller
RABSTAT="${RABDIR}/rautobak.stat"  # Summary (no tar stuff) of last backup
RABLOGS="${RABDIR}/rablogs"        # Directory of rautobak.stat history
AGE=30                            # How many days we will keep the logs
RABFTPPATH="${RABDIR}/ftppath"  # Save all none comment lines here for path
RABFTPFILES="${RABDIR}/ftpfiles" # Save all none comment lines for files
RABTAR="/versyss/data/tmp"            # A place to do the tar file MAKE IT BIG!
RABTEMPDIR="${RABDIR}/tmp"         # Directory for Temporary files
TEMPPATH="$RABTEMPDIR/temp.path$$" # Save all none comment lines here for path
TEMPFILES="$RABTEMPDIR/temp.files$$" # Save all none comment lines for files
#
# Programs to Call
#
RABNOTIFY="$RABDIR/RNotify" # Optional program used to notify users of complete
RABINSTALL="${RABDIR}/RABInstall"  # Program to modify crontab for rautobak
RAUTOBAK="${RABDIR}/rautobak"      # The program for running a manual backup
#
# ----------------- Begin Notify Code -----------------------#
#
. /etc/vsifax3.sh
vfx -n sjordan@gcrsi.com $RABSTAT | tee -a $RABOUT $RABSTAT
vfx -n veronicacornett@gcrsi.com $RABSTAT | tee -a $RABOUT $RABSTAT
vfx -n rich@rtkmedia.com -t sub="GCRSI Auto Backup" $RABSTAT | tee -a $RABOUT $RABSTAT
echo "faxed report to above IDs" | tee -a $RABOUT $RABSTAT
