Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

bpstart and bpend

Updated: 18 Sep 2010 | 4 comments
Luis M's picture
0 0 Votes
Login to vote

Hi, everybody

Plis, Someone can give me an example of how one configures a backup using bpstart_notify and bpend_notify? Or someone can tell me the steps to configure that kind of jobs?
That is in AIX.

discussion Filed Under:

Comments

J.Hinchcliffe's picture
17
Mar
2010
0 Votes 0
Login to vote

Do you mean Bpstart and Bpend?

put the script into <installdir>/openv/netbackup/bin  (this is on the client)

then edit the file.

find the blurb that says main script start here

below that

put os commands to do what ever you want it to do

you don't have to uncomment any thing else unless you want it to run that stuff also.

save the file.

bpstart_notify(.bat)  will run when any job starts on a client
bpend_notify(.bat) will run when any job ends on a client

bpstart_notify.putpolicynamehere(.bat) will run when any job in that policy starts on the client
bpstart_notify.putpolicynamehere(.bat) will run when any job in that policy ends on the client

bpstart_notify.putpolicynamehere.putschedulenamehere(.bat) will run when any job in that policy, in that schedule starts on the client

bpstart_notify.putpolicynamehere.putschedulenamehere(.bat) will run when any job in that policy, in that schedule ends on the client

This is well documented in the admin manual

or in this tech doc

http://http://seer.entsupport.symantec.com/docs/274059.htm

 

I don't have to know how to spell....I work on Unix.
NetBackup 7.0.1 - AIX & Windows

CRZ's picture
17
Mar
2010
0 Votes 0
Login to vote

I hope you mean bpstart_notify and bpend_notify :)

First of all, I think you mean bpstart_notify and bpend_notify.  :)

Second of all, what's the version number of your NetBackup client?  You'll want to check the admin guide for whichever version you're running to get more details.  Most "Volume II" admin guides have an extensive section on these scripts.

 

Luis M's picture
18
Mar
2010
0 Votes 0
Login to vote

Yes I was wrong, Now I have a new doubt

Yes, I was talking about bpstart and bpend, that was a mistake.
I just saw the documentation and is excelent. But I have a new doubt, and is if I have to insert a script to stop services in bpstart and insert a script to start services in bpend.

Thats way because I want to backup some files that only can be backed when the services are stopped. Then I dont know If I need to insert a script into the bpstart and bpend scripts or if these scripts do this by themselves.

CRZ's picture
18
Mar
2010
1 Vote +1
Login to vote

Yes :)

You will either need to insert your scripts into bpstart_notify and bpend_notify

OR

you can rename your scripts TO bpstart_notify and bpend_notify

What happens is, just before bpbkar starts on the client, there's a check for the script.  If one is found, it'll run.

Same with bpend_notify run after the bpbkar completes backing up - just before it exits, it will check for the script and run it if it finds it.

Keep in mind that if you're multistreaming, you may end up running these scripts several times which can sometimes complicate things if you're using those scripts to do something complex, like your example of stopping and restarting a service.  In those situations, you either need to tweak your script to make sure it will only run one time, or switch to a single-streamed backup by disabling multistreaming.

A lot of this is covered in the documentation, of course.