I tried using the tip listed in this thread, it didn't work. I must be doing something wrong.
This is what I'd like to accomplish:
Run NT Backup after close of business at 2am Saturday morning.
Run NT Backup on the same tape (append) after close of business at 11pm Saturday night.
I set up two batch jobs with the parameters listed in the thread (modified for my use of course), but like I said in the opening statement, it didn't work.
Here is what I used:
Saturday 2am:
c:
cd\
cd \batches
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:\windows\system32\ntbackup.exe backup "@c:\batches\ntbackup\FullBack.bks" /J "Gimli-Saturday" /N "Backup Tape-%dtt%" /M normal /V:yes /L:s /HCn /UM /p "LTO Ultrium"
Saturday 11pm:
c:
cd\
cd \batches
c:\windows\system32\ntbackup.exe backup "@c:\batches\ntbackup\FullBack.bks" /J "Gimli-Sunday" /T "Backup Tape-%dtt%" /A /V:yes /M normal /L:s /HCn
rsm eject /LF"IBM ULTRIUM-HH3 TAPE DRIVE"
exit
This is what I'd like to accomplish:
Run NT Backup after close of business at 2am Saturday morning.
Run NT Backup on the same tape (append) after close of business at 11pm Saturday night.
I set up two batch jobs with the parameters listed in the thread (modified for my use of course), but like I said in the opening statement, it didn't work.
Here is what I used:
Saturday 2am:
c:
cd\
cd \batches
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:\windows\system32\ntbackup.exe backup "@c:\batches\ntbackup\FullBack.bks" /J "Gimli-Saturday" /N "Backup Tape-%dtt%" /M normal /V:yes /L:s /HCn /UM /p "LTO Ultrium"
Saturday 11pm:
c:
cd\
cd \batches
c:\windows\system32\ntbackup.exe backup "@c:\batches\ntbackup\FullBack.bks" /J "Gimli-Sunday" /T "Backup Tape-%dtt%" /A /V:yes /M normal /L:s /HCn
rsm eject /LF"IBM ULTRIUM-HH3 TAPE DRIVE"
exit