- 论坛徽章:
- 0
|
编写内部培训教材,涉及到磁带机远程操作部分,粘贴过来
dg20% mt -f /dev/rmt/0 stat
HP DDS-3 4MM DAT tape drive:
sense key(0x0)= No Additional Sense residual= 0 retries= 0
file no= 0 block no= 0
使用dg20上的磁带机备份本机的文件
server% tar cvfb - 20 pdf | rsh dg20 dd of=/dev/rmt/0 obs=20b
a pdf/ 0K
a pdf/solaris-506.tar 27829K
a pdf/LICREAD.TXT 22K
a pdf/README 21K
a pdf/INSTALL 14K
a pdf/COMMON.TAR 2432K
a pdf/SOLRDR.TAR 25337K
111317+0 records in
5565+1 records out
读取dg20上的磁带机文件到本机硬盘
server% rsh -n dg20 dd if=/dev/rmt/0 bs=20b | tar xvBfb – 20
如果提示Permission denied就使用chmod 777改变当前目录权限。
x pdf, 0 bytes, 0 tape blocks
x pdf/solaris-506.tar, 28496896 bytes, 55658 tape blocks
x pdf/LICREAD.TXT, 22501 bytes, 44 tape blocks
x pdf/README, 21451 bytes, 42 tape blocks
x pdf/INSTALL, 13596 bytes, 27 tape blocks
x pdf/COMMON.TAR, 2489856 bytes, 4863 tape blocks
x pdf/SOLRDR.TAR, 25945088 bytes, 50674 tape blocks |
|