the script appears to be moaning about the -A variable $CURRENTFULL which is defined earlier in the script by the following code:
Code:
CURRENTFULL=`ls -A -1 "$ARCHIVEDIR""$BACKUPWEEK"*$FULL_PREFIX*dar 2>/dev/null | cut -d . -f1 `
You can test the code on your system by replacing the $variables with the appropriate config for your system and then manually running the command from the shell, e.g. (on my box)
Code:
[root@zim]# ls -A -1 /opt/zimbra-backup/current/41*FULL*dar 2>/dev/null | cut -d . -f1
/opt/zimbra-backup/current/41_Zimbra_Backup_12-October-2009_FULL
It looks like you're making a DIFF backup, but if the script doesn't work on your system have you been able to make a FULL backup for the script to find with this code? ..if not (and the code returns nothing when you test it on your box) this might explain why the script fails at this point? If that's the case what error do you see when making a FULL backup?
The email error means your OS uses "sendmail" for the "mail" command but sendmail can't be found in /usr/sbin/sendmail .. Can you confirm that it's installed?
NB: I see that you cut/pasted one of my tweaks into the script, it's nice to see someone reads them! Please be aware that the tweaks are cummulative and you've missed one where I changed the name format of the Backuplist file. Your script uses the original code name to create the Backuplist file, so if you ever set ATTACHLIST to YES the name of the file created and the name of the file the attachlist tweak looks for won't match and it'll fail. At the moment you have ATTACHLIST set to NO so this doesn't affect the other issues you've got.
Christian