Francis Galiegue schrieb:
Le Friday 23 November 2007 08:52:17 Marc Muehlfeld, vous avez écrit :
[I think you meant to send this message to the list, so the answer goes there]
Yes. Sorry. It was to early in the morning :-)
* rewind: mt -f /dev/nst0 rewind
Done
* show header: dd if=/dev/nst0 bs=32k count=1
# dd if=/dev/nst0 bs=32k count=1
AMANDA: TAPESTART DATE 20071122213456 TAPE KAS002
014
1+0 Datensätze ein
1+0 Datensätze aus
32768 Bytes (33 kB) kopiert, 2,59912 s, 12,6 kB/s
* go to next file: mt -f /dev/nst0 fsf 1
Done.
* show DLE header: dd if=/dev/nst0 bs=32k count=1
# dd if=/dev/nst0 bs=32k count=1
AMANDA: SPLIT_FILE 20071122213456 protein.mr.lfmg.de /BACKUP part 1/1 lev 0
comp .gz program /bin/tar
To restore, position tape at start of file and run:
dd if=<tape> bs=32k skip=1 | /usr/bin/gzip -dc | /bin/tar
-xpGf - ...
1+0 Datensätze ein
1+0 Datensätze aus
32768 Bytes (33 kB) kopiert, 0,0481214 s, 681 kB/s
(There was a ^L or something else inside that cleared the screen after the
line "dd if=...").
* IF the DLE header is correct (ie, no character substitution), then try and
list what's in the archive: dd if=/dev/nst0 bs=32k|tar t(z? are your archives
compressed?)f -
# dd if=/dev/nst0 bs=32k|tar tzf -
./
./IAS-Backup/
.....
.....
dd: Reading from „/dev/nst0“: Input/Output-Error
36706+0 Datensätze ein
36706+0 Datensätze aus
1202782208 Bytes (1,2 GB) kopiert, 1603,55 s, 750 kB/s
gzip: stdin: unexpected end of file
tar: Unerwartetes Dateiende im Archiv.
tar: Nicht behebbarer Fehler: Programmabbruch.
The whole dd proces took 27 Minutes.
--
Marc Muehlfeld (Leitung Systemadministration)
Zentrum fuer Humangenetik und Laboratoriumsmedizin Dr. Klein und Dr. Rost
Lochhamer Str. 29 - D-82152 Martinsried
Telefon: +49(0)89/895578-0 - Fax: +49(0)89/895578-78
http://www.medizinische-genetik.de
|