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

Backup Tape Naming Problem

Status
Not open for further replies.

davtea

IS-IT--Management
Nov 6, 2002
4
GB
Hi

Have just installed a new W2K server, but am having trouble with backup. I want to schedule a backup for Mon-Fri using day-specific DDS tapes on 10-day 2-week basis. I want to label them as Monday Week 1, Tuesday Week 1 thru to Friday Week 2 and for user to put in the tape matching that day, the job will then run that evening. I know that you need to initialise each tape so it is given the correct name, but can I then schedule the job for every weekday without needing to specify which tape is to be used (ie scheduling a different job for each day)? Or do I need to manually schedule 10 different jobs in sequence?
Hope this makes sense, thanks!
 
depends on what backup system you are using

in backup exec you can create 1 job and have it schedule to run everyday at the same time.

rphips
 
Cheers, am using MSBackup. Have created 1 job & scheduled it daily, but specify new media for 1st run. If job runs with used media (replacing data on previously used tape), it fails with "no new media can be found". Ideally, I want to create 1 job, but one that doesn't check for media labels. I'm not sure if the "/um" parameter overrides the label check. Am going to backup small files to 10 tapes today to create relevant day labels, and go from there - any advice still appreciated!
 
The best thing is to go ahead with the creation of one job. Set it to run daily. For the destination use a wild card character. For example in ArcServe you can use the asterisk (*) to indicate this. This method prevents the error "no media found" because whichever tape is in the machine will be used. On your side of course you must control the changing of the tapes according to your backup system. G'luck! Lemme know! :)
 
Here's a script for your requirements. Schedule to run as a bat file.

echo off


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 "@D:\NTBackup\data\Nightly Backup.bks" /n "%computername%-%dtt%" /d "daily %dtt%" /v:yes /r:no /hc:eek:n /m normal /j "daily %dtt%" /l:f /p "LTO Ultrium" /UM
 
Managed to get it working - backed up empty file on 10 tapes in order to name them, then created 10 batch files to run each backup job. Then scheduled each batch job to run on relevant day every fortnight - seems to be working fine so far!

Thanks to all that offered help, always nice to know it's there if you need it :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top