General discussion

Locked

Automating NTBackup Eject

By johnnyextreme ·
I have the entire backup routine automated on my NT4 servers where all I do is remove yesterday's tape and add today's. On the Win2K servers, however, I have to use the Removable Storage MMC to 'Eject' yesterday's tape, 'Inject' today's, 'Deallocate' it, and 'Prepare' it. I've got the task scheduler doing the actual backup at night using a batch file, but can any of these MMC tasks be automated as well?

This conversation is currently closed to new comments.

8 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Automating NTBackup Eject

by QB In reply to Automating NTBackup Eject

Are You useing a changer? If so there is a utility that helps configure changers which RSM could not configure during setup. Let me know I could e-mail it to you (395kb)

Collapse -

Automating NTBackup Eject

by johnnyextreme In reply to Automating NTBackup Eject

I am using a single 4mm DAT drive on each server- not a tape changer. In NT4 the command "NTBACKUP EJECT" would spit the tape out. Because Win2K has many possible removable storage locations (local tape drive, local CDR drive) I suppose I must specify what to eject, so what I'm asking for is proper syntax for Win2K's NTBackup commands. ('Help' is no help)

Collapse -

Automating NTBackup Eject

by NTOz In reply to Automating NTBackup Eject

You can try and use the command line based rsm.exe to accomplish what your trying to do. Its basicaly the RS MMC from a comand prompt and you could schedual a batch file to kick it off.

Pete

Collapse -

Automating NTBackup Eject

by NTOz In reply to Automating NTBackup Eject

This should also be helpful, it tells you how to use the RSMMC to generate the command line batch scripts, saving you time and identifying the guid of the device you want to eject. Also the RSM.exe will give you the guid's you need. Its Q239892

If you want to schedule a batch file to perform additional tasks along with the
backup, you can copy the backup command string from a scheduled backup job by
viewing any of the scheduled tasks properties from the Schedule Jobs tab in
Ntbackup or by using the Scheduled Tasks tool in Control Panel. You can then put
it in a separate batch file, modify the string to fit your needs, and schedule
it using the at command or Task Scheduler.

The following example is a backup command line that was copied from the
properties of a scheduled backup that was performed above:

C:\WINNT\system32\ntbackup.exe backup "@C:\Documents and
Settings\bkupuser\Local Settings\Application Data\Microsoft\Windows
NT\NTBackup\data\daily.bks" /n "Monday-Full" /d "Mondays Full Backup"
/v:no/r:no /rs:no /hc:on /m normal /j "Mondays Job" /l:f /t "Monday-Full"

NOTE: The last parameter may be /g {guid} to represent RSM Logical_Media ID
instead of /t "tape_name." The {guid} value is a 32-bytevalue in the form of
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx." You can use either parameter to
represent and use the tape in a batch file. Besides looking at the properties of
a scheduled backup job, the {guid} values for all logical media can be extracted
using the following Rsm.exe command. They are not listed in order, so it is
difficult to tell which {guid} value represents which tape.

Rsm.exe view /tlogical_media /guiddisplay

Collapse -

Automating NTBackup Eject

by NTOz In reply to Automating NTBackup Eject

You can also use the Rsm.exe command-line tool in the batch file to instruct RSM
to eject the tape when the backup is finished. Use Rsm.exe and issue the
following command to extract the physical media names ahead of time to use with
the eject command:

rsm view /tphysical_media

PHYSICAL_MEDIA

Monday-Full - 1
Tuesday-Full - 1
Wednesday-Full - 1
Thursday-Full - 1
Friday-Full - 1

Collapse -

Automating NTBackup Eject

by NTOz In reply to Automating NTBackup Eject

BTW This works, let me know if you have questions, drop me an email!

Pete

Collapse -

Automating NTBackup Eject

by johnnyextreme In reply to Automating NTBackup Eject

Thanks, Pete. I will give you the 1000, but first: <b>How do I learn the GUID of the tape drive or its friendly name?</b> I've already tried using all the "names" of the device I could find including "ARCHIVE Python 04106-XXX SCSI Sequential Device", which is the name listed in the device properties.

Collapse -

Automating NTBackup Eject

by johnnyextreme In reply to Automating NTBackup Eject

This question was closed by the author

Back to Windows Forum
8 total posts (Page 1 of 1)  

Related Discussions

Related Forums