2 new hooks based on success/failure of backup

Registered by Matthew

In our case, we will be running mylvmbackup from cron every morning at 1AM. It would be nice to have hooks into mylvmbackup that we could code against for sending notifications on success or failure of the backup:

run_hook('prebackup');

if(do_backup_tar())
  run_hook('backupsuccess');
else
  run_hook('backupfailure');

run_hook('precleanup');

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Obsolete
Series goal:
None
Implementation:
Deployment
Milestone target:
None
Started by
Lenz Grimmer
Completed by
Lenz Grimmer

Related branches

Sprints

Whiteboard

I added run_hook('postbackup'); after the log_msg ("DONE", LOG_INFO); line in both do_backup_*() functions as well as run_hook('postbackupfailure');

should suffice.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.