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!

SBS2003 - Tweaking the built in backup

Status
Not open for further replies.

xvpindqrjqkk

Programmer
Feb 20, 2004
2
GB
Hi all,

I've got a SBS 2003 machine and the built in backup is pretty much all we need. However, I need to make one change - get it to blank the tapes before starting the backup.

(At the moment we have to manually add the tape to the free pool before a backup)

I should be able to do that by adding a simple switch to ntbackup command - but for the life of me I can't find the batch file it calls to run the backup.

Any ideas?
 
I know this is an old post, but I'm having this issue as well and this was the first one in search.

How do you ask SBS or NTBackup to wipe the tape before it backs up again? We backup once a week and want it to erase the previous week's data before it backs up current data. We only have one tape and the data we backup takes a majority of the tape's space.

Thanks!
:) -Andrew

alien.gif

[Signature modified by admin request]
-TAG
anongod@hotmail.com
'Drawing on my fine command of language, I said nothing.'
 
Going through the search results I found this post:

...talks about using the /um switch.

But in another posts I hear the /um switch was removed in 2003.

Any insights on this? I'll try it out and see how it goes.
*croses fingers*

:) -Andrew

alien.gif

[Signature modified by admin request]
-TAG
anongod@hotmail.com
'Drawing on my fine command of language, I said nothing.'
 
The /UM switch still works in Windows 2003 SBS and Standard.
 
Here's the code we use. It contains the /UM that overwrites the tape.
========================================================

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 systemstate c: f: h: /J "Daily Backup" /N "Backup Tape-%dtt%" /V:no /L:s /HC:eek:n /P "DLT" /UM
 
Note: there is a bug in the NTBackup from 2003 that can add the /N or the /D switch twice. I can't recall which at the moment. Either way you will want to remove the redundant switch and add the /UM.

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top