PVE-ZSYNC Email alerts?

killmasta93

Renowned Member
Aug 13, 2017
974
59
68
31
Hi,
I was wondering if someone else has accomplish on getting email alert after the pve-zsync?
This is what i have

Code:
10 18 * * * root pve-zsync sync --source 100 --dest 192.168.6.253:vmdata/vmbackup --name backupsdaily --maxsnap 7 --method ssh

i tried adding
Code:
MAILTO=myemail@mydomain.com

i also tried adding this at the end as im ussing ssmtp
Code:
 | sendmail -s "Subject of Mail" myemail@mydomain.com
no luck either

any ideas?

Thank you
 
Hi,

general this setting is not necessary because Proxmox VE will redirect output from the cronjobs to the root email.
And pve-zsync will only give output if you use verbose.
 
Thanks for the reply, so for i to get an email report on if the backup was successful i need to add -v to the code? i can an email alert when i shutdown the other host and it fails but not an email alert saying it was successful

Thank you
 
You have to add --verbose in the crontab

Code:
10 18 * * * root pve-zsync sync --source 100 --dest 192.168.6.253:vmdata/vmbackup --name backupsdaily --maxsnap 7 --method ssh --verbose
 
  • Like
Reactions: killmasta93