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
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