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
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 Set BKS=Normal
REM Set BKSLoc="@R:\Utilities\Tape\%bks%.bks"
REM Set TapeDrive="4mm DDS"
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