Backup Client: Only sent e-mail on failure

Afox

Renowned Member
Dec 18, 2014
257
14
83
Hello,

is it possible to configure the PBS Client to only sent an e-mail on failure?

Thanks and best regards
 
Hi!
the `proxmox-backup-client` does not send out e-mails. But you can easily use `sendmail` (or `mail`, `mutt`, etc) to achieve this.
`proxmox-backup-client` should always return a non-null exit-code when somethings wrong so you could do something like this:
Bash:
proxmox-backup-client backup test.pxar:./important_dir || sendmail email@example.com < error_mail.txt

sendmail: https://www.man7.org/linux/man-pages/man8/sendmail.8.html
 
Last edited:
  • Like
Reactions: Lukas Wagner