[SOLVED] error output from proxmox-backup-client includes standard output

RobFantini

Famous Member
May 24, 2012
2,009
102
133
Boston,Mass
running proxmox-backup-client from crontabs we want to know if there are errors errors go to an email, standard output to a log file

with a recent update to Version: 2.2.5-1 we are getting standard output to emails .

for example:

Code:
Starting backup: host/nextcloud/2022-08-03T14:12:10Z
Client name: nextcloud
Starting backup protocol: Wed Aug  3 10:12:10 2022
Downloading previous manifest (Wed Aug  3 10:08:29 2022)
Upload directory '/etc' to 'pbs-user@pbs@10.1.10.80:8007:server-datastore' as etc.pxar.didx
etc.pxar: had to backup 0 B of 9.376 MiB (compressed 0 B) in 0.10s
etc.pxar: average backup speed: 0 B/s
etc.pxar: backup was done incrementally, reused 9.376 MiB (100.0%)
Upload directory '/var/www' to 'pbs-user@pbs@10.1.10.80:8007:server-datastore' as var-www.pxar.didx
var-www.pxar: had to backup 0 B of 499.179 MiB (compressed 0 B) in 2.01s
var-www.pxar: average backup speed: 0 B/s
var-www.pxar: backup was done incrementally, reused 499.179 MiB (100.0%)
Upload directory '/var/backups/' to 'pbs-user@pbs@10.1.10.80:8007:server-datastore' as var-backups.pxar.didx
var-backups.pxar: had to backup 0 B of 34.067 MiB (compressed 0 B) in 0.13s
var-backups.pxar: average backup speed: 0 B/s
var-backups.pxar: backup was done incrementally, reused 34.067 MiB (100.0%)
Uploaded backup catalog (592.241 KiB)
Duration: 2.29s
End Time: Wed Aug  3 10:12:12 2022


running the same pbs backup script using version 2.2.1-1 there is no error output lines.

note 2.2.1-1 and earlier have always for us output this non error line: "had to backup" , which i grep out in script to avoid a useless email .


naturally i do not want to send all output to logs . we want to know when there is an actual error.

any suggestions to fix this?
 
Code:
fbc-all-servers-crond:05      06 * *   *   root nice /fbc/bin/fbc-sleep-15-min ; ionice -c 3 /fbc/bin/pbs/pbs-servers |  grep "had to backup"   | /usr/bin/logger -t BACKUP

the script sets variables then
ionice -c 3 proxmox-backup-client backup  etc.pxar:/etc  var-www.pxar:/var/www var-backups.pxar:/var/backups/
 
Perhaps there is a way to use a newer [ systemd related or something ] logging method , with an email only when a backup failure occurs .
 

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!