Windows 2K Backup

inthedark used Ask the Experts™
I have noticed that on some Win 2K systems backup just won't play ball.

I just want the thing to run each night and take a back up.  But some how the process screws, but not always.  I have included the batch file below, which should run an unmanaged backup.

But what has to be done in the tape pool area so that Windows just does the job with no complications.

I want the tape to be renamed each day, even if it is not changed. Is it possible to clean whatever tape is in the drive and set it up to be used as the next tape within a batch file.

Also perhaps you can also suggest an improvement the day is passed as a parameter to the batch file, but there is a way of creating the Day of Week within the file itself.

Thanks in advance,


-----Start of Batch File
Rem This this is run by Task Scheduler
Rem The file reqiuires one parameter which is the RunDay

Set day=%1
If %day%.==. Set day=adhoc

Rem Set BKS=Normal
Rem Set BKSLoc="@C:\Documents and Settings\admin\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\%bks%.bks"
Rem Set TapeDrive="Travan"

Rem TP
REM Set BKS=Normal
REM Set BKSLoc="@R:\Utilities\Tape\%bks%.bks"
REM Set TapeDrive="4mm DDS"

Set BKS=Normal
Set BKSLoc="@c:\Utilities\Tape\%bks%.bks"
Set TapeDrive="4mm DDS"
Set DeviceName="SONY SDT-9000 SCSI Sequential Device"

Start /wait rsm.exe refresh /lf%DeviceName%

C:\WINNT\system32\ntbackup.exe backup %BKSLoc% /j "%day%" /n "%day%" /d "%day%" /v:yes /r:no /rs:no /hc:on /m normal  /l:s /p %TapeDrive% /um
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

When a scheduled backup job starts backup looks for the specified media (the one you specified when creating the job).  If you put a new tape in, it wont start. If you want the job to run daily on the same tape you can name it as you wish and set the job to look for that name.  If you want to backup each day on a different tape you would have to create each tape with a different name and make sure you have the correct tape in every time.
That is what I want to avoide, as operators are stupid and put the wrong tape in.  So is there a way of either reformatting the tape or forcing the backup.

Not with the windows backup program... You could try a third party utility.
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Did you write the script?
there is an MS article, number 239892, that will help you, well it helped me!!!! Our remote office now backs up Monday to Friday and all the user has to do is take the last nights tape out,insert the tape with the right day name on it, and walk away, the tapes have that days date and time of backup as their name, I enclose my .bat file for you to see

echo off
rsm.exe refresh /lf"HP C1533A SCSI Sequential Device"
sleep 45
C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and Settings\Administrator.STEELE&CO\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\Job_name.bks" /d "daily Job Name" /v:yes /r:no /rs:no /hc:on /m normal /p 4mm DDS /j "London Lawn Lane" /l:s /um
rsm.exe eject

The only thing that wont work is the eject, but I can live with that.

Hopes it helps
We gave up and installed a CD backup system using batch files.

ps If you see Bill Gates can you reformat him for me!
It's months that I am fighting with MS backup.

I was able to learn that I can call all tapes with the same name and backup all days to the same tape name.

Tapes have virtually all the same name but in reality they bear a paper label with the day name and users rotate the  according to this.

Remember to schedule the backup with the option to assign the standard name to every tape.

It works on a server but recently I discovered that it stopped working on another server wothout a good reason.

I will have to spend some more time on this issue or give up and buy a new software (Arcserve?)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial