How do I get a script to run before a backup job starts?

From Backup Central


Use the bpstart_notifyand bpend_notifyscripts found in /usr/openv/netbackup/bin/goodies. (It's bpstart_notify.bat and bpend_notify.bat on Windows.)

Copy them into the /usr/openv/netbackup/bin directory (or <install_dir>\Veritas\NetBackup\binon Windows, and add the commands you want to run in the appropriate places in the script. You may customize the scripts to the class and schedule level by naming them bpstart_<start|end>[<classname>[<schedulename>]]if you desire.

There is a problem with bpstart_notify and bpend_notify being used with multistreaming. It causes the bpstart/bpend script to run once for each filesystem. The easy fix for this is to disable multistreaming on classes that you need to run bpstart_notify and bpend_notify scripts. There is a work around for this problem on Unix clients. You can download a copy from http://www.backupcentral.com/bpstart-workaround.tar.gz. (This is an OLD workaround, but it might still work for you.)

We had hoped that the parent job/child job feature in 6.0 would deal with this issue, but the parent bpnotify script currently only runs on the master. bummer.