Page 1 of 1

How to turn off email notification of Full Backup Report

Posted: Sat Jul 25, 2020 8:12 pm
by myVesta
In /usr/local/vesta/conf/vesta.conf
delete line NOTIFY_ADMIN_FULL_BACKUP=

Sometimes backup is broken for many reasons (no disk space or configuration files are somehow broken), so it's good to get once per week info email about health status of your backups.

Re: How to turn off email notification of Full Backup Report

Posted: Tue Aug 06, 2024 11:02 pm
by geniusconsult
It is good idea to update that script to send notification only if backup fails for any reason :)
So if "status=OK" - don't send mail :)

Re: How to turn off email notification of Full Backup Report

Posted: Tue Aug 06, 2024 11:33 pm
by geniusconsult
My 2 cents - if you don't want notifications for backup finished OK.

Find lines which send mail message (script: /usr/local/vesta/bin/v-backup-users at line 78), and update condition like this:

Code: Select all

if [ "$FINAL_STATUS" != "OK" ]; then
   if [ ! -z "$NOTIFY_ADMIN_FULL_BACKUP" ]; then
       cat $log |$SENDMAIL -s "Full backup report for $HOSTNAME; status=$FINAL_STATUS" "$NOTIFY_ADMIN_FULL_BACKUP" 'yes'
   fi
fi