Backup Client: Only sent e-mail on failure

Afox

Renowned Member
Dec 18, 2014
257
12
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

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!