rdiff-backup success generale notification
In the event the rdiff-backup succeeds I would like to feed a backup-manager system.
In my case the email is unsuitable for this system and I'd like to run arbitrary command after the backup.
(backupninja is run from cron, but even the general backupninja status does not tell anything about individual script status)
The attached patch solves the issue: it runs a (configuration originated) command just after backup succeeded and before the execution status (= rdiff-backup return code) is lost (set to 0)
To avoid some quoting/system complexity, the raw command line is run through `bash -c`
#2 Updated by drzraf about 2 years ago
I needed mysql notification too...
I reworked the beast so that it's independent of the backup backend (so it's now really "general") BUT it expects
#8185 since without general backup action return code, no BACKUP_NINJA_STATUS and command execution loose a lot of its usefulness.