[Borgbackup] Retrieve the status (return code) of a backup?
Bzzzz
lazyvirus at gmx.com
Thu Mar 26 10:35:41 EDT 2020
On Thu, 26 Mar 2020 12:02:33 +0100 (CET)
Frédéric PAVY <frederic.pavy at free.fr> wrote:
> Hello,
Hi,
> I do borg backups automatically, silently, and recently I discovered
> that some backups returned in error (return code 1).
>
> I launched 'borg list' for the repository and even 'borg info' for an
> individual archive and was surprised not to see the return code for
> the 'borg create' corresponding command. Where could I retrieve this
> information? Isn't it stored in the backup? If not, could I understand
> the reason?
You can retrieve the system exit code of any executable into bash
with $?
ie : ls ; echo $?
Jean-Yves
More information about the Borgbackup
mailing list