How to turn off email notification of Full Backup Report

Post Reply
User avatar
myVesta
Site Admin
Posts: 946
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 9 times
Been thanked: 6 times

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.

Tags:
User avatar
geniusconsult
Posts: 5
Joined: Wed Jun 28, 2023 10:51 pm

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 :)
User avatar
geniusconsult
Posts: 5
Joined: Wed Jun 28, 2023 10:51 pm

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
Post Reply