backup-restore: Verify backup file integrity after backup
The backup-restore can create invalid archives in some cases (like when the file size limit of the file system is smaller than the actual backup file, then the file is truncated).
- Either check response codes for the backup commands and report an error when anything fails,
- or verify the resulting backup file is valid (there's a
--check
command), - or both
As the backup usually runs in the --gui
, the actual error message can be shown by the evolution-backup
process directly. The non-GUI run should return error code as an indication that something failed.