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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

thread531-165355

Status
Not open for further replies.

NowayT

Programmer
Oct 8, 2010
1
US
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 /HC:eek:n /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 /HC:eek:n




rsm eject /LF"IBM ULTRIUM-HH3 TAPE DRIVE"



exit
 
did not work" is pretty vague. What exactly, if anything, did happen. Any entries in the Windows even viewer? Anything backed up at all??

Help us to help you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top