How to launch a script when a parent backup job is finished
I want to launch a script when one of my NDMP backups is finished.
It's an NDMP policy with multiple backup selections and "multiple streams" is enabled to reduce the backup window.
I've found some scripts that are triggered at the end of an NDMP job : ndmp_end_notify and ndmp_end_path_notify.
But my problem is : due to the multiple streams, a parent backup job is launched and a child job is kicked of for each backup selection.
And those scripts are called at the end of each child job, but they are not called at the end of the parent job.
I want to do actions when the whole job is finished with exit 0. So I'm not interrested in the exit code of each individual backup stream, I want to have the exit status of the complete job
Does anyone has a suggestion for me?