/dev/rmt/
x device number
a l low
m medium
h high
u ultra hiqh
n rewind/norewind
mt -t /dev/rmt/0 status
TAPE=/dev/rmt/0;export TAPE
mt status
mt rewind
mt bsf 2
mt fsf 4
mt asf 1
mt eom
mt offline
mt retension
•Restore latest archive
mt status
mt bsf 2
/usr/local/bin/tar -xvzf /dev/rmt/0
LDT Tape Operation
Backup:
mt -f /dev/nst0 stat
mt -f /dev/nst0 rewind
tar -czvf /dev/nst0
mt -f /dev/nst0 offline
Restore:
mt -f /dev/nst0 stat –>0:0
tar -tzvf /dev/nst0 –>list
mt -f /dev/nst0 bsf 1 –>back 1 file
tar -xzvf /dev/nst0 –>extract
use “mt -f /dev/nst0 asf x” to go to the xth file.