S
Sean Rector
Hello,
I'm having trouble with scripting NTBackup on a couple of
machines. The problems are that the log does not get
created, and the media that is created is not added to the
available media under the Restore tab. Here is my script:
@Echo Off
rsm.exe refresh /LF"ARCHIVE Python 04106-XXX SCSI
Sequential Device"
sleep 30
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 "@C:\Documents and
Settings\Administrator.Active01\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\Weekday
Backup.bks" /n "%computername%-%dtt%" /d "Daily %
dtt%" /v:yes /r:no /rs:no /hc
n /m normal /j "Daily %
dtt%" /l:s /p "4mm DDS" /UM
rsm.exe eject /PF"%computername%-%dtt% - 1" /astart
exit
On two machines, the above problems occur. On a third
machine, I get a window w/ MSTask.exe, w/ the text "The
command completed successfully." and "Cannot run the
program specified" which stays open, then ntbackup opens
up, and it starts looking for a particular tape. When it
cannot find the tape, it waits for me to insert the tape,
or cancel, which ends the MSTask window, and the backup
never occurs.
Please help. Also, please do not suggest buying
BackupExec or other 3rd party program - that kind of
suggestion is not helpful to resolving this scripting
problem.
Thanks!
Sean
I'm having trouble with scripting NTBackup on a couple of
machines. The problems are that the log does not get
created, and the media that is created is not added to the
available media under the Restore tab. Here is my script:
@Echo Off
rsm.exe refresh /LF"ARCHIVE Python 04106-XXX SCSI
Sequential Device"
sleep 30
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 "@C:\Documents and
Settings\Administrator.Active01\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\Weekday
Backup.bks" /n "%computername%-%dtt%" /d "Daily %
dtt%" /v:yes /r:no /rs:no /hc

dtt%" /l:s /p "4mm DDS" /UM
rsm.exe eject /PF"%computername%-%dtt% - 1" /astart
exit
On two machines, the above problems occur. On a third
machine, I get a window w/ MSTask.exe, w/ the text "The
command completed successfully." and "Cannot run the
program specified" which stays open, then ntbackup opens
up, and it starts looking for a particular tape. When it
cannot find the tape, it waits for me to insert the tape,
or cancel, which ends the MSTask window, and the backup
never occurs.
Please help. Also, please do not suggest buying
BackupExec or other 3rd party program - that kind of
suggestion is not helpful to resolving this scripting
problem.
Thanks!
Sean