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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ntbackup difficulty

Status
Not open for further replies.

brettster

Technical User
Nov 15, 2001
2
0
0
AU
Hello

Until we move to backup exec we are attempting to get ntbackup to back up local drives (not network) to a dlt tape. We would like to stop Oracle, backup D: and E: first, start Oracle (all of this works fine), then append the remaining backup of other drives to this tape (fails). Following is the batch file, and the error we are getting. Alltapes are named already with the same name, all available in the DLT pool under 'Backup Media', each with different sequence numbers. The same batch file is used nightly.

Doco for ntbackup is on your pc under Backup - examples and command line parameters, also at

backup.bat
----------
call D:\Oracle\admin\scripts\stopora.bat

C:\winnt\system32\ntbackup backup systemstate D:\
E:\ /J "Ora Daily" /N "Backup Tape" /M normal /V:yes /L:s /HC:eek:n /UM /P "DLT"

call D:\Oracle\admin\scripts\startora.bat

C:\winnt\system32\ntbackup backup systemstate C:\ F:\ /J "Daily" /T "Backup Tape" /A /V:yes /M normal /L:f /HC:eek:n


ERROR
-----
Backup Status
The operation was not performed because a non-unique tape name was specified.

----------------------

Best Regards and thanks in advance
Brett
 
Please Test with :

backup.bat
----------
call D:\Oracle\admin\scripts\stopora.bat


for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set dt=%%i-%%j-%%k-%%l
for /f "Tokens=1" %%i in ('time /t') do set tm=-%%i
set tm=%tm::=-%
set dtt=%dt%%tm%

C:\winnt\system32\ntbackup backup systemstate D:\
E:\ /J "Ora Daily" /N "Backup Tape-%dtt%" /M normal /V:yes /L:s /HC:eek:n /UM /P "DLT"

call D:\Oracle\admin\scripts\startora.bat

C:\winnt\system32\ntbackup backup systemstate C:\ F:\ /J "Daily" /T "Backup Tape-%dtt%" /A /V:yes /M normal /L:f /HC:eek:n




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top