Abort if any handler fails
Is there a way to configure backupninja such that it aborts as soon as any failure occurs?
I have /etc/backup.d/90.borg
to backup to Borgbackup and /etc/backup.d/99-report.sh
to report a successful backup to a monitoring service. The issue I'm encountering is that even if Borgbackup fails, 99-report.sh
is still executed.
Altrernatively, is there a way to configure a command to run after a successful backup?