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!

Prepare 4mm DDS Tape using backup script

Status
Not open for further replies.
Mar 10, 2004
25
US
I have a HP SureStore Dat24 dds3 SCSI external. I am running Win 2k Server with dual processors. I need to know how to prepare a tape from my backup script.
 
Windows 2000 does not have a native way to prepare a tape from the command line, but Windows Server 2003 does.
 
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.
 
Try and put this in a batch file, it should take care of any tape preparing, you will have to change the path to the selection file and probably the device name.

START BATCH FILE
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

STOP BATCH FILE

If you have any queries feel free and ask and I will try and run through the steps thats not working.

/Kim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top