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..