View Single Post
  #106 (permalink)  
Old 09-03-2008, 12:18 PM
Thraxis Thraxis is offline
Starter Member
 
Posts: 1
Default

For those of you getting the error on line 901 and/or Full Backup e-mails with no file list attached. It seems there are a couple issues with the script.

#1. It the $UUENCODE variable is only given a value during the installation section of the script.

around line 527 after:
Code:
    MD5SUM_BIN=`whereis md5sum | awk '{print $2}'`
    if [ ! -e "$MD5SUM_BIN" ]
    then
         echo "Please install "md5sum"!"
         echo "Try running the script with --INSTALL"
         cat $LOG | mail -c $EMAILCC -s "Zimbra backup error on `hostname --fqdn`" $EMAIL
         exit 1
    fi
Add the following:
Code:
    UUENCODE_BIN=`whereis uuencode| awk '{print $2}'`
    if [ ! -e "$UUENCODE_BIN" ]
    then
         echo "Please install "uuencode"!"
         echo "Try running the script with --INSTALL"
         cat $LOG | mail -c $EMAILCC -s "Zimbra backup error on `hostname --fqdn`" $EMAIL
         exit 1
    fi
Then go down to around line 908 (used to be 901) and change:
Code:
(cat $LOG; $UUENCODE "$ARCHIVEDIR"Backuplist-"$BACKUPDATE".txt.gz "$ARCHIVEDIR"Backuplist-"$BACKUPDATE".txt.gz) | mail -c $EMAILCC \
to

Code:
(cat $LOG; $UUENCODE_BIN "$ARCHIVEDIR"Backuplist-"$BACKUPDATE".txt.gz "$ARCHIVEDIR"Backuplist-"$BACKUPDATE".txt.gz) | mail -c $EMAILCC \

Last edited by Thraxis : 09-03-2008 at 04:13 PM. Reason: Wrong copy/paste
Reply With Quote