12-14-2008 10:33 PM
Hi
I've create the script as below & schedule it with Windows schedular
@echo off
@set PATH=%PATH%;"C:\WINDows\system32"
@set PATH=%PATH%;"C:\Program Files\VERITAS\NetBackup\bin\"
@set PATH=%PATH%;"C:\NAS01\scripts"
cd..
"Program Files\VERITAS\NetBackup\bin\bpbackup.exe" -i -p NAP01-H-R-S-Y-ZDrive -s full -S zmy12app11 -w
cd..
"Program Files\VERITAS\NetBackup\bin\bpbackup.exe" -i -p NAP01-T-W-X-Drive -s full -S zmy12app11 -w
cd..
"Program Files\VERITAS\NetBackup\bin\bpbackup.exe" -i -p NAP01-U-V-Drive -s full -S zmy12app11 -w
When The schedule kick in, it will skip the first policy with errors :"The specified path cannot be found" & start the second policy backup. (NAP01-T-W-X-Drive)
Any idea what's went wrong with my scripts?
Thanks
12-15-2008 12:10 AM
Is ur 2nd Policy Backup running successfuly after skiping 1st Policy???
also i found one small mistake this may cause of problem !
cd..
c:
cd "C:\Program Files\VERITAS\NetBackup\bin\"
bpbackup.exe -i -p NAP01-H-R-S-Y-ZDrive -s full -S zmy12app11 -w
bpbackup.exe -i -p NAP01-T-W-X-Drive -s full -S zmy12app11 -w
bpbackup.exe -i -p NAP01-U-V-Drive -s full -S zmy12app11 -w
change your script like above and check because u didnt specify the exact path !
12-15-2008 12:39 AM
I've modified it & re-run the script. Still getting the same error message
Is the batch file got limitation with the characters for my first policy : " NAP01-H-R-S-Y-ZDrive "
It just skip the first policy on this script and straight proceed to backup the second policy without any issues.
12-15-2008 12:47 AM
I dont think so !
u have written the same Syntax for 2 nd Policy Backup, But your second policy running without any problem means- there should some incorrect naming in ur script line.
If batch file got some limitations then 2 nd policy backup should get the same error !
re check again ur storage unit names and others !
:)
12-15-2008 09:00 AM
if you run this command, just like it is in your script:
bpbackup.exe -i -p NAP01-H-R-S-Y-ZDrive -s full -S zmy12app11 -w
what happens?
12-15-2008 04:53 PM
12-16-2008 02:14 AM
Have you tried swapping around the sequence that the script runs the backups?
e.g. move the first (failing) job to the end so the second job now runs first.
Does the same job fail or is it always the first job in the script?
***Edit***
If the former - then the issue is with that line/policy, if the latter it's some scripting issue.
12-16-2008 03:28 PM
Then the issue is not with netbackup is with the OS, something needs to be configured under windows that will allow you to run the first line I will recomend to search in a windows scritpting forum.
regards