Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backup policy to run script after complete 1

Status
Not open for further replies.

onpnt

Programmer
Dec 11, 2001
7,778
US
Good morning Veritas Forum

I'm in the process of reading the Admin guide and thought I would post a thread also to see if anyone around has some info for me.

Here is what I have

The expected process after completed
.NET Application is run on a scheduled task once a year to archive a particular directory and files with in the directory. The application is needed do to the need for only certain files to be archived. This is validated from a timestamp in the file name. After the application has done its thing with the files I’m using a System.Diagnostics.Process to perform a .Start("bpbackup.exe -p policy_name") to fire off the job on netbackup (Version 5.1). After the job is completed the temporary directory that the files that needed to be written to tape needs to be deleted.

Simple task?!? The problem area is the deletion of the temporary directory. I commonly use the backup_exit_notify for error alerts and I’m reading rate now on bpend_notify script however this seems to open another problem (at least in my thought process) There are several normal policies (jobs) that run on the particular server in question and I don’t want to run the exit script when each of them end. It seems the bpend does just that.

So the question: Is there a way to run something like a bat after a specific policy for a client is complete (successfully)?

I’m also looking into the System.Diagnostics.Process.WaitForExit() on the .NET side but sense the mechanics of how a job is called I’m not confident that will wait until the full backup is actually completed. I basically have to test that scenario and see how it goes.

Thanks in advance for the help and knowledge.

onpnt


General FAQ faq333-2924
5 steps to asking a question faq333-3811
 
You can have the script named for the policy and schedule.

With that said it should look like:

bpend_notify.<Policyname>.<schedulename>.bat
 
Thanks comtec17

I found this thread earlier thread776-478993 and just haven't tried it out yet to post back.

Thanks again for posting back letting me know (and the syntax) along with letting me know it is the corect way to do it. This should get the process completed for me.


General FAQ faq333-2924
5 steps to asking a question faq333-3811
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top