tape inserted in NTbackup

D

dan

Hy guy. how can i chek if the tape is inserted in Windows 2000 NT backup?

i want someting like

commad

if "%errorlevel%" == "0" goto ok.....

thank fo help
 
E

Edmunde Lee

Dimiter Vassilev said:
In Windows2k try RSM.EXE

HTH
Dimiter Vassilev

I won't give you the batch garboon (IFs and FORs) but here's the rsm
flow.

(see inline comments)


rsm view /tLibrary /guiddisplay
^^# this will burp out the GUID of your tape drive (hopefully), find
a way to parse the number of results to get the one you want to use it
in the next line


rsm view /cg%TapeDriveGUID% /tPhysical_Media /guiddisplay
^^# this will tell you what physical media is located in the container
specified in /cg%TapeDriveGUID% (which is the GUID of your tape drive
you pulled from the first line)



RSM is *almost* kinda cool.. but the fact that it doesn't do
everything quite right, such as trying to allocate a given tape for
NTBACKUP, makes it kinda silly.

To be absolutely sure your tape is going to work within NTBACKUP, you
need to have the GUI NTBackup run through it, at least once, and to
have it allocate the media into it's media pool...

For example, for a weekly rotation, make sure that you have your tapes
labelled accordingly, such as a tape for each day of the week, or
what-have-you (best to label them through the NTBACKUP GUI itself),
and to verify through the RSM MMC plug that those tapes are listed in
the BACKUP media pool.

If someone can tell me how to script RSM into allocating a tape into
NTBACKUP media pool, *without* having to ever launch the GUI, please
let me know ASAP.

If it makes any difference, I'm using a Sony GY-8240 DTF2.
 
R

Ross Presser

(e-mail address removed) (Edmunde Lee) wrote in
If someone can tell me how to script RSM into allocating a tape into
NTBACKUP media pool, *without* having to ever launch the GUI, please
let me know ASAP.

What I want to know is how you can force NTBACKUP to continue with a job
AFTER you've added new media when it asked for it. I have had to split up
all my backups so a full fits on one tape, and give up appending altogether
- even though I found a way to hack with RSM to get the name of the
currently inserted tape, to pass to NTBACKUP.
 
A

aj

Ross Presser said:
(e-mail address removed) (Edmunde Lee) wrote in


What I want to know is how you can force NTBACKUP to continue with a job
AFTER you've added new media when it asked for it. I have had to split up
all my backups so a full fits on one tape, and give up appending altogether
- even though I found a way to hack with RSM to get the name of the
currently inserted tape, to pass to NTBACKUP.

--
Ross Presser -- rpresser AT imtek DOT com
"... VB is essentially the modern equivalent of vulgar Latin in 13th
Centurary Europe. Understand it, and you can travel to places you never
heard of and still understand some people." -- Alex K. Angelopoulos

Hello
How did you get the name of the currently inserted tape, to pass to
NTBACKUP?

Thanks

Anne
 
D

dan

Thank for answer.. I'll try
Edmunde Lee said:
"Dimiter Vassilev" <[email protected]> wrote in message

I won't give you the batch garboon (IFs and FORs) but here's the rsm
flow.

(see inline comments)


rsm view /tLibrary /guiddisplay
^^# this will burp out the GUID of your tape drive (hopefully), find
a way to parse the number of results to get the one you want to use it
in the next line


rsm view /cg%TapeDriveGUID% /tPhysical_Media /guiddisplay
^^# this will tell you what physical media is located in the container
specified in /cg%TapeDriveGUID% (which is the GUID of your tape drive
you pulled from the first line)



RSM is *almost* kinda cool.. but the fact that it doesn't do
everything quite right, such as trying to allocate a given tape for
NTBACKUP, makes it kinda silly.

To be absolutely sure your tape is going to work within NTBACKUP, you
need to have the GUI NTBackup run through it, at least once, and to
have it allocate the media into it's media pool...

For example, for a weekly rotation, make sure that you have your tapes
labelled accordingly, such as a tape for each day of the week, or
what-have-you (best to label them through the NTBACKUP GUI itself),
and to verify through the RSM MMC plug that those tapes are listed in
the BACKUP media pool.

If someone can tell me how to script RSM into allocating a tape into
NTBACKUP media pool, *without* having to ever launch the GUI, please
let me know ASAP.

If it makes any difference, I'm using a Sony GY-8240 DTF2.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top