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.
How to turn off email notification of Full Backup Report
- 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
So if "status=OK" - don't send mail
- 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:
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