Views

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

This Wiki is brought to you by Backup Central, where you can find the Mr. Backup Blog, Forums, and a mailing list for each forum!

Backup FAQs Service Providers Backup Software Backup Hardware Backup Book Wiki Free Stuff Miscellaneous


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.