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

Windows 2k format tape using scripts 1

Status
Not open for further replies.
Mar 10, 2004
25
US
I am trying to setup a simple backup script for win 2k. Tapes have to be prepared before I can use them. Need to know how to prepare them without using the GUI inerface. Need a command that will work in win 2k without having to use a software program. Anyone know how?
 
Thanks for the info. The Script does do all the tape functions but I need it so that Win 2k recognizes the tape in the free media pool. I have to have the Logical GUID to run my backup. Can you help with this?
 
Thanks for the reply. I have read that page, it still requires me to manually prepare each tape. I want to prepare/format the tape from my backup script. Any ideas how?
 
I have found a way around Windows 2000 server NTBackup. You can use the NT 4.0 ntbackup if you place it in the c:\directory. You also have to copy the ntctl3d.dll to the same directory. When you write you backup script you specify c:\ntbackup instead of ntbackup. In using the NT 4.0 ntbackup you do not need the GUID. Thanks for all the help and hope this helps.
 
Im using a script that looks like this and I can put in any new tape and it will prepare it for me if its not been used before.

If you are using a diffrent drive than a 4mmDAT you need to change the device names but beside that it should work ok. You will also need to do your selection bks file and make sure its accessible by this batch file.

BATCH FILE START

net stop ntmssvc
sleep 60
net start ntmssvc
sleep 60

rsm.exe refresh /lf"HP C5683A SCSI Sequential Device"
sleep 60

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.exe backup systemstate "@C:\backup\BACKUP.bks" /n "backup %dtt%" /d "backup %dtt%" /v:no /r:no /rs:no /hc:eek:n /m normal /j "%dtt%" /l:s /p "4mm DDS" /UM

rsm.exe eject /PF"backup %dtt% - 1" /astart

BATCH STOP

Hope that this will sort out your problem.
/Kim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top