Video Screencast Help

using bpstart_notify scripts

Created: 09 May 2013 • Updated: 14 May 2013 | 7 comments
This issue has been solved. See solution.

hello all, i need assistance on how to apply bpstart_notify & bpend_notify to control a specific jobs in backup policy. In simple explanation, i want to use bpstart and bpend to control the scripts that shut down databases, do a backup and talk to the script to bring up the database once backup is completed.

Thank you all.

Operating Systems:

Comments 7 CommentsJump to latest comment

Yasuhisa Ishikawa's picture

If you want to apply bpstart_notify.bat(or bpend_notify.bat)to specific policy, place script as bpstart_notify.policy_name.bat(or bpend_notify.policy_name.bat) instead.

I recommend you not to enable "Allow multiple streams" attribute in policy because these scripts are kicked multiple times if enabled.

Authorized Symantec Consultant(ASC) Data Protection in Tokyo, Japan

Dolly's picture

Yasuhisa, Please how do i present this bpstart_notify to control another script. In this case, the oracle script. thank you

Yasuhisa Ishikawa's picture

bpstart_notify is batch script, so just write command line in it to kick another script.
Or use CMD.EXE or CALL(for batch file only) as below:

Example1:

@ECHO OFF
CMD.EXE /C C:\your_command_path\your_command.exe command_arg1 command_arg2 ...

Example2:

@ECHO OFF
CALL C:\your_script_path\your_script.bat batch_arg1 batch_arg2 ...

Authorized Symantec Consultant(ASC) Data Protection in Tokyo, Japan

SOLUTION
Dolly's picture

Thank you so much Yasuhisa for support. I have also read this, but one more quick question am confused with, am i suppose to copy the bpstart_notify script to /netbackup/bin directory on the client? as well as the master server? thanks

Yasuhisa Ishikawa's picture

bpstart_notify is executed on clients. You need to place it on the clients on which you want to run pre-backup oparations.

Authorized Symantec Consultant(ASC) Data Protection in Tokyo, Japan

Dolly's picture

Hi Yasuhisa, quick one again...how can i configure bpstart_notify to notify me by email ones it kick off the custom script?

thank you.

Yasuhisa Ishikawa's picture

Unfortunately no way in NetBackup.

Install some mailing software like BLAT, and write mailing command in your script.

Authorized Symantec Consultant(ASC) Data Protection in Tokyo, Japan