[SOLVED] Backup Client NULL message Body

kwat

Member
Apr 16, 2021
39
2
13
67
Hi:

I'm using proxmox-backup-client 2.3.3-1 on PVE 7.3-6. I'm having problems getting email notifications when I run the following commands as root from PVE:

export PBS_PASSWORD and PBS_FINGERPRINT
proxmox-backup-client backup etc.pxar:/etc --include-dev /etc/pve --repository bkmgr@pbs\!fsbackup@192.168.10.9:backup1 --ns pve-config | mail -s "PVE Config Backup" account@gmail.com

The backup command runs successfully but the mail command outputs "NULL message body, hope that's ok". Email is sent but the message body is empty.

Both the backup command and mail command work as expected when run separately. I substitute echo for proxmox-backup-client and pipe into mail.

Any suggestions on why this is happening?
 
Hey,

with | alone you are only piping stdout, try using 2>&1 | so stderr gets also piped to mail.
 

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!