Mintsoft Posted March 9, 2006 Posted March 9, 2006 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
plexer Posted March 9, 2006 Posted March 9, 2006 What backup software are you using? Most of them have the option to eject after backup. Ben
Mintsoft Posted March 9, 2006 Author Posted March 9, 2006 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?
Dos_Box Posted March 9, 2006 Posted March 9, 2006 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.
Mintsoft Posted March 9, 2006 Author Posted March 9, 2006 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
ajbritton Posted March 9, 2006 Posted March 9, 2006 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
Mintsoft Posted March 9, 2006 Author Posted March 9, 2006 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
ajbritton Posted March 9, 2006 Posted March 9, 2006 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.
Mintsoft Posted March 9, 2006 Author Posted March 9, 2006 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
ajbritton Posted March 9, 2006 Posted March 9, 2006 Nope. Win2K appears not to support the /L switch for the EJECT command. Sorry.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now