¥Æ¡¼¥×¤Ø¤Î tar
- ´ðËÜÁàºî
to SCSI tape
% tar cvf /dev/rst0 . ¥ï¡¼¥¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤ÎÁ´¥Õ¥¡¥¤¥ë
% tar cvf /dev/rst0 ./filename ¥ï¡¼¥¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤Î¤¢¤ë¥Õ¥¡¥¤¥ë
³Îǧ
% tar tvf /dev/rst0 .
from SCSI tape
% tar xvfp /dev/rst0 .
- ¥Þ¥ë¥Á¡¦¥Õ¥¡¥¤¥ë
ºÇ¸å¤ËÄɲýñ¤ ( /dev/nrst0 ¥Æ¡¼¥×¤Î´¬¤Ìᤷ¤ò¤·¤Ê¤¤)
% mt -f /dev/nrst0 eom
% tar cvf /dev/nrst0
Äɲýñ¤
:
% mt -f /dev/nrst0 fsf 1
% tar tvf /dev/nrst0 ÆâÍƤγÎǧ
tar: read error: I/O error ¥Æ¡¼¥×¤ÎºÇ¸å
% tar cvf /dev/nrst0 .
Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤«¤é¤ÎÆɤߤÀ¤·
% tar xvfp /dev/nrst0 .
% mt -f /dev/nrst0 fsf 1
% tar xvfp /dev/nrst0 .
- ¥Æ¡¼¥×Áàºî
°ÌÃ֤γÎǧ % mt -f /dev/nrst0 status
EOF ¤Î¥¹¥¥Ã¥× % mt -f /dev/nrst0 fsf #
EOF ¤Î¥¹¥¥Ã¥× % mt -f /dev/nrst0 nbsf #
´¬¤Ìᤷ % mt -f /dev/nrst0 rewind
¥Æ¡¼¥×¤Î°ÌÃÖÉÕ¤±
file#=0 / | EOF / | file#=1 / | EOF / | file#=2 / | EOF / | file#=3 | EOF
|
¢¬ | ¢¬ | ¢¬ | | ¢¬ | ¢¬
|
rewind | bsf | nbsf | ¢« | | ¢ª | fsf | eom
|
- ¥ê¥â¡¼¥È¤Î¥Æ¡¼¥×
¥ê¥â¡¼¥È¤Î /dev/rst0 ¤«¤éÆþÎÏ
% rsh -n hostname dd if=/dev/rst0 bs=20b | tar xvBfb - 20
% rsh -n hostname dd if=/dev/rst0 bs=#b | tar xvBfb - # .
# : ɸ½àÃÍ = 20
¥ê¥â¡¼¥È¤Î /dev/rst0 ¤Ø½ÐÎÏ
% tar cvfb - 20 . | rsh hostname dd of=/dev/rst0 obs=20b
% tar cvfb - # . | rsh hostname dd of=/dev/rst0 obs=#b
- ¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë
rst0 2GB mode
rst8 5GB mode
rst16 °µ½Ì mode