Print

Command line tape backup eject

Posted in Server

I had someone very insistent on getting the tape to eject after backup because apparently pressing the button is too hard. I've never needed this prior to now but its bound to come back up.

Below is the full script:

 --------------------------Script Start------------------------------------------------------------------

START /WAIT RSM.EXE REFRESH /LF"DAILY BACKUP"

C:\WINDOWS\system32\NTBACKUP.EXE backup "@C:\Backup\Daily.bks" /n "Daily Backup" /d "Daily Backup" /v:yes /r:no /rs:no /hc:on /m normal /j "Daily.job" /l:s /p "LTO Ultrium" /um

rsm eject /LF"Hewlett Packard LTO Ultrium-2 drive" /astart

---------------------------Script End------------------------------------------------------------------

Here is the line you need to mod to suit your library name (this can be found under removable storage in Computer management > Removable storage > Libraries)

 --------------------------Script Start------------------------------------------------------------------

rsm eject /LF"Hewlett Packard LTO Ultrium-2 drive" /astart

 ---------------------------Script End------------------------------------------------------------------