Backup Client - Error handling

Alan Urquhart

New Member
Apr 17, 2019
8
0
1
UK
www.asucloud.com
The documentation seems to lack any info on error handling / exit codes when using the backup client. It would be useful to include such documentation / example of errors so that we can create backup scripts to backup hosts / other systems to PBS reliably.

The intention is to convert our current borg scripts to use PBS. But for this we need to handle / report / log any errors.

Any guidance greatly appreciated.
 
the client should exit with a non-zero exit code in case something goes wrong. a hopefully descriptive error is included in the backup log/client output. there is not much more that is guaranteed as a stable interface yet - but it probably would be a good idea to file an enhancement request for that - e.g. a mode with some structured JSON output indicating a status code, message, backup phase or something like that..
 

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!