如何通过 LTO-6 磁带读取 dar 存档

Jon*_*ein 4 linux tape dd archiving lto

/data文件夹保存在磁带上

\n\n
dar -R /data/ -c - | mbuffer -R 110M -P 90 -m 1G | dd of=/dev/nst0 bs=256k\n
Run Code Online (Sandbox Code Playgroud)\n\n

我如何测试、列出并提取它?

\n\n

我尝试了以下方法来测试存档,但没有运气:

\n\n
# mt -f /dev/nst0 status\nSCSI 2 tape drive:\nFile number=0, block number=0, partition=0.\nTape block size 0 bytes. Density code 0x58 (no translation).\nSoft error count since last status=0\nGeneral status bits on (41010000):\n BOT ONLINE IM_REP_EN\n\n# dd if=/dev/nst0 bs=256k | dar -t -\ndd: error reading \xe2\x80\x98/dev/nst0\xe2\x80\x99: Cannot allocate memory\n0+0 records in\n0+0 records out\n0 bytes (0 B) copied, 0.00344152 s, 0.0 kB/s\nOpening a pair of pipes to read the archive, expecting dar_slave at the other ends...\n\xef\xbf\xbdFinal memory cleanup...\nFATAL error, aborting operation\nCorrupted data read on pipe\n
Run Code Online (Sandbox Code Playgroud)\n

小智 5

-0对于顺序读取:

dd if=/dev/nst0 bs=256k | dar -0 -t -
Run Code Online (Sandbox Code Playgroud)

  • 经过测试并且工作正常。 (2认同)