【发布时间】:2014-02-21 14:09:38
【问题描述】:
我是磁带存档领域的新手,但我觉得很奇怪,如果不通过 tar -r 选项就无法将两个文件写入磁带。
这是我想要做的:
$ cd /tmp
$ touch first second
$ tar cvf /dev/st0 first
$ tar cvf /dev/st0 second
$ tar tvf /dev/st0
-rw-r--r-- mathieu/mathieu 0 2014-02-21 15:00 second
显然我丢失了first 文件。我看不出我怎么可能跳过第一个 tar 存档。我试过了:
$ export TAPE=/dev/st0
$ mt fsf 2
/dev/st0: Input/output error
$ mt fsf 1
$ mt tell
At block 0.
我的情况是,我希望 两台 机器能够创建单独的 tarball,然后将每个机器 scp 到磁带存档器(cron 作业)上,以将这两个机器存储为单独的 tarball。比如:
$ tar zcf - /home | ssh tape_archiver "cat > /dev/st0"
供参考:
$ mt status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x40 (DLT1 40 GB, or Ultrium).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
根据tldp,应该可以跳过第一个存档。
【问题讨论】:
-
哇,我以为磁带不再使用了!
-
我还应该用什么来备份文件 ~51Gb(CT 扫描)便宜的?我不可能为一个文件使用几十张 DVD。