So I have this small issue where pve is sending email notifications when backup jobs are successful even if "On failure only" is checked for the "notify"" field. (and job detail logs confirm this as well with "--mailnotification failure". Also, I get double notifications since one notification get sends to root (dunno why) and the other one is sent to the recipient set under "send email to:" field in each backup jobs. Any idea why I get notifications when the jobs are successful ?
Also, is there a way to make the notification sent only to recipient defined in the "send email to:" field ?
Also, is there a way to make the notification sent only to recipient defined in the "send email to:" field ?
Code:
INFO: starting new backup job: vzdump 105 --notes-template '{{cluster}}, {{guestname}}, {{node}}, {{vmid}}' --mailnotification failure --quiet 1 --storage pbs-1 --prune-backups 'keep-last=1' --node pve --mode snapshot --compress zstd --mailto XXX@XXX.com
INFO: Starting Backup of VM 105 (lxc)
INFO: Backup started at 2023-11-20 13:00:02
INFO: status = running
INFO: CT Name: Fileserver
INFO: including mount point rootfs ('/') in backup
INFO: including mount point mp0 ('/RZ2-1_1-4_4TB_Fileserver_Data') in backup
INFO: excluding volume mount point mp1 ('/RZ2-1_1-4_4TB_MBP_BKP') from backup (disabled)
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: suspend vm to make snapshot
INFO: create storage snapshot 'vzdump'
INFO: resume vm
INFO: guest is online again after <1 seconds
INFO: creating Proxmox Backup Server archive 'ct/105/2023-11-20T18:00:02Z'
INFO: run: lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client backup --crypt-mode=none pct.conf:/var/tmp/vzdumptmp1289901_105/etc/vzdump/pct.conf root.pxar:/mnt/vzsnap0 --include-dev /mnt/vzsnap0/./ --include-dev /mnt/vzsnap0/./RZ2-1_1-4_4TB_Fileserver_Data --skip-lost-and-found --exclude=/tmp/?* --exclude=/var/tmp/?* --exclude=/var/run/?*.pid --backup-type ct --backup-id 105 --backup-time 1700503202 --repository admin@pbs@xxx.xxx.com:EVO-TEMP
INFO: Starting backup: ct/105/2023-11-20T18:00:02Z
INFO: Client name: pve
INFO: Starting backup protocol: Mon Nov 20 13:00:02 2023
INFO: Downloading previous manifest (Fri Nov 17 18:33:57 2023)
INFO: Upload config file '/var/tmp/vzdumptmp1289901_105/etc/vzdump/pct.conf' to 'admin@pbs@xxx.xxx.com:8007:EVO-TEMP' as pct.conf.blob
INFO: Upload directory '/mnt/vzsnap0' to 'admin@pbs@xxx.xxx.com:8007:EVO-TEMP' as root.pxar.didx
INFO: root.pxar: had to backup 131.94 MiB of 35.163 GiB (compressed 62.096 MiB) in 275.17s
INFO: root.pxar: average backup speed: 490.991 KiB/s
INFO: root.pxar: backup was done incrementally, reused 35.034 GiB (99.6%)
INFO: Uploaded backup catalog (1.687 MiB)
INFO: Duration: 275.41s
INFO: End Time: Mon Nov 20 13:04:37 2023
INFO: adding notes to backup
INFO: prune older backups with retention: keep-last=1
INFO: running 'proxmox-backup-client prune' for 'ct/105'
INFO: pruned 1 backup(s) not covered by keep-retention policy
INFO: cleanup temporary 'vzdump' snapshot
INFO: Finished Backup of VM 105 (00:04:37)
INFO: Backup finished at 2023-11-20 13:04:39
INFO: Backup job finished successfully
INFO: notified via target `<mail-to-XXX@XXX.com>`
INFO: notified via target `mail-to-root`
TASK OK