Netbackup immediate job initiation using commands
I have following requirement in Windows2008 R2 - Netbakup 7.5 , tried many ways to convince the client for other plans but below requirement I need to implement
- Stop the application
- Take application folder to disk level backups on the same server – Z:\Backup
- Start application
- Take files in the Z:\Backup to tape from media server
I am following below process
- Create a policy with automatic schedules for disk backup for step2 in above requirement
- Create a policy with schedule and without backup window for tape backup for step4 in above requirement
- Add the command to stop the application in bpstart_notify.bat and copy the file into bin directory in client
- Add the commands to bpend_notify.bat
- Command for application start
- Cd\program files\veritas\netbackup\bin
- bpbackup -i -p <policy_name> -s <schedule_name>
I have tested it it is working fine for now.
Please let me know if anything wrong in the above process or in future any problem i will face? and also any prerequisite I need to take before implementing it.
Is the backup policy multi-streamed?
If so, you will need to be careful re 'mutiple' - and also possibly 'concurrent' too - instances of 'bpstart_notify' running.
If it is multi-streamed then you may need to check the 'STREAM_COUNT' and/or 'STREAM_NUMBER' environment variables, and implement some kind of coding/logic so that the script can decide what to do, if anything, or simply exit quietly from bpstart_notify.