![如何通过 LTO-6 磁带读取 dar 档案](https://linux22.com/image/1463502/%E5%A6%82%E4%BD%95%E9%80%9A%E8%BF%87%20LTO-6%20%E7%A3%81%E5%B8%A6%E8%AF%BB%E5%8F%96%20dar%20%E6%A1%A3%E6%A1%88.png)
文件/data
夹已保存在磁带中
dar -R /data/ -c - | mbuffer -R 110M -P 90 -m 1G | dd of=/dev/nst0 bs=256k
我该如何测试、列出并提取它?
我尝试了以下方法来测试档案,但没有成功:
# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x58 (no translation).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
# dd if=/dev/nst0 bs=256k | dar -t -
dd: error reading ‘/dev/nst0’: Cannot allocate memory
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00344152 s, 0.0 kB/s
Opening a pair of pipes to read the archive, expecting dar_slave at the other ends...
�Final memory cleanup...
FATAL error, aborting operation
Corrupted data read on pipe
答案1
-0
对于顺序读取:
dd if=/dev/nst0 bs=256k | dar -0 -t -