Jump to content

Recommended Posts

Posted

Hey all.

 

I was wondering if anyone knows a way that I can schedule on our 2K and 2K3 servers to eject their backup tapes. We have one server (NT4!) that does it already, is there anything built into windows? or am I going to need a small program?

 

Thanks in advance

-Rob Emery

Posted
Just the built in Microsoft Backup Program I Believe. I have checked the options but I dont recall seeing an option to eject when they are fininshed anywhere, unless I just missed it?
Posted

Here you'go.

http://support.microsoft.com/kb/q239892/

There is a complet list of switches there to add to NT Backup.

 

After the backup is finished, in each day's batch file, use the rsm eject command to eject that day's tape:

rsm eject /pf"Monday-Full - 1" /astart

The following example shows a sample backup batch file to run on Mondays:

echo off

start /wait 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"

rsm eject /pf"Monday-Full - 1" /astart

 

Also using the any media switch is recommended too.

Posted
Here you'go.

http://support.microsoft.com/kb/q239892/

There is a complet list of switches there to add to NT Backup.

 

After the backup is finished, in each day's batch file, use the rsm eject command to eject that day's tape:

rsm eject /pf"Monday-Full - 1" /astart

The following example shows a sample backup batch file to run on Mondays:

echo off

start /wait 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"

rsm eject /pf"Monday-Full - 1" /astart

 

Also using the any media switch is recommended too.

 

aha cheers!!

 

rsm eject /pf"Monday-Full - 1" /astart

is the kind of thing i was after, only problem is i cant quite figure out how to make it eject regardless of which days tape is in. Have I missed a sentence somewhere on that page?

 

-Thanks

Rob

Posted

Try the following

 

RSM EJECT /LF"LibraryName" /ASTART

 

replacing LibraryName with the name of the tape library. You can see a list of libraries by entering the following;

 

RSM VIEW /TLIBRARY

Posted

on closer inspection, I'm a total idiot

rsm eject /lf"Sony AIT 100 GB Drive"

was all I needed!

 

Thanks for the help guys, much appreciated

-Rob

Posted
Incidentaly, I've been using that Microsoft script since Win2K first appeared and it has worked faultlessly.... until now. Some 2K3 servers don't seem to like ejecting tapes anymore.
Posted
Try the following

 

RSM EJECT /LF"LibraryName" /ASTART

 

replacing LibraryName with the name of the tape library. You can see a list of libraries by entering the following;

 

RSM VIEW /TLIBRARY

 

Ahh sorry I didnt see your post until after I'd posted mine! Ive got that working on the 2K3 Server fine, but on the 2000 it comes up with:

C:\Documents and Settings\Administrator>rsm eject /lf"SONY SDX-500C SCSI Sequential Device"

Unable to parse arguments.

C:\Documents and Settings\Administrator>

 

I notice that the command also has fewer switches, Any idea how to eject the library on 2K?

 

-Thanks

Rob

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...