2 Component Names and Functions 69
E
• For Windows Backup
In batch files etc., add a description that executes the following command after the backup
command has been executed.
rsm refresh /lf"Hewlett Packard LTO Ultrium-3 drive"
rsm eject /lf"Hewlett Packard LTO Ultrium-3 drive"
Example of a batch file
*To create c:\test\test.bks, start Windows Backup, check off the target backup in the [Backup] tab
and select [Save Selections] in the [Job] menu.
For an example of a Windows Backup batch file, refer to Microsoft Knowledge Base, Article ID :
239892 (http://support.microsoft.com/kb/239892/en-us).
For details about how to use the ntbackup, rsm command refer to Windows help (Clcik "Start" →
"Help and Support" and search for "ntbackup" or "rsm").
•For NetVault
Confirm the device name in the NetVault device management.
Example: "server 001 1-0.3.0 (HP Ultrium 3-SCSI)"
Use the confirmed device name and create a shell script containing the following contents
(tapeeject.sh) in the script/users directory in the directory that installed NetVault (/usr/netvault) (
create /usr/netvault/scripts/users/tapeeject.sh).
Example of tapeeject.sh (specify the confirmed device name after ?devicename)
/usr/netvault/util/nvdeviceeject -devicename 'server-001:_1-0.3.0_(HP_Ultrium_3-SCSI)'
During backup, check off "Use Post Script" in the "Advanced Option" tab in the NetVault backup
window.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
@echo off
cls
setlocal
rsm inventory /lf"Hewlett Packard LTO Ultrium-3 drive" /aFULL
timeout /t 60
rsm refresh /lf"Hewlett Packard LTO Ultrium-3 drive"
timeout /t 60
for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set dt=%%i-%%j-%%k-%%l
for /f "Tokens=1" %%i in ('time /t') do set tm=-%%i
set tm=%tm::=-%
set dtt=%dt%%tm%
ntbackup backup @c:\test\test.bks* /n "%computername%-%dtt%" /d "daily
%dtt%" /j "daily %dtt%" /p "LTO Ultrium" /V:no /R:no /L:f /M normal /RS:NO
/HC:ON /UM
timeout /t 60
rsm refresh /lf"Hewlett Packard LTO Ultrium-3 drive"
timeout /t 60
rsm eject /lf"Hewlett Packard LTO Ultrium-3 drive"
timeout /t 60
endlocal
㪙㪸㫋㪺㪿㩷㪝㫀㫃㪼㩷㪚㫆㫅㫋㪼㫅㫋㫊
㪙㪸㪺㫂㫌㫇
㪜㫁㪼㪺㫋
㫋㪿㪼㩷㪺㪸㫉㫋㫉㫀㪻㪾㪼
㪥㫌㫄㪹㪼㫉
㪣㫀㫅㪼