Vytas Janusauskas wrote:
This list the following:
AMANDA: FILE 20050304 dendron.l8r.net /mnt/vxa2/scans/c/Seven_Unix lev
0 comp .gz program /bin/tar
To restore, position tape at start of file and run:
dd if=<tape> bs=32k skip=1 | /bin/gzip -dc | bin/tar -f... -
So I rewind the tape skip 2 files and then issue:
dd if=/dev/nst0 bs=32k skip=1 | /bin/gzip -dc | /bin/gtar -f ????
In the syntax of tar the "-f somefile" to read somefile as input,
specify "-" to read standard input, i.e. "-f -".
It's obscure, but many program that expect a filename, also accept
the placeholder filename "-" (a single hyphen) to stand for stdin
(standard input: the terminal, or whatever is fed into by the piped
command before).
I tried various things as substitutes for ???? such as
/mnt/vxa2/scans/c/Seven_Unix and
dendron.l8r.net._mnt_vxa2_scans_c_Seven__Pent22.20050304.0
Results is always an error similar to the following:
/bin/tar: dendron.l8r.net._mnt_vxa2_scans_c_Seven__Unix.20050304.0:
Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
/bin/tar: Child returned status 2
/bin/tar: Error exit delayed from previous errors
1+0 records in
0+0 records out
0 bytes transferred in 0.021878 seconds (0 bytes/sec)
Any pointer to what I should be putting on the final command line would
be appreciated.
I usually extract with these options:
$ su # we need to be root to be able to restore owner, etc.
# mkdir /the/lost/directory # where to place the files
# cd /the/lost/directory
# dd if=.... bs=32k skip=1 | /path/to/gnutar -xzpvf -
-x : extract
-z : filter through gzip
-p : preserve permissions
-v : some animation on the screen
-f - : read from standard input
--
Paul Bijnens, Xplanation Tel +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512
http://www.xplanation.com/ email: Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************
|