On Mon, Dec 01, 2003 at 04:23:41PM -0600, Rebecca Pakish Crum wrote:
> > > docs/RESTORE is pretty clear, IMHO. Have a look at that, and
> > > then let us
> > > know *exactly* what you don't understand. As a short intro,
> > > you use 'mt'
> > > to position the tape, 'dd' to grab the raw image off the tape, and
> > > restore/'tar x' to extract the contents of the image.
> >
> > docs/RESTORE says the same thing as the chapter, basically.
> >
> > when I run:
> > # mt rewind
> > # mt fsf 1
> > # dd if=/dev/rmt/0hn bs=32k count=1
> > I get:
> > AMANDA: FILE 20031127 spork.unterlaw.com
> > /u05/oracle/admin/testua lev 0 comp N program
> > /usr/local/bin/tar To restore position tape at start of file and run:
> > dd if=<tape> bs=32k skip=1 | /usr/local/bin/tar -f... -
> > 1+0 records in
> > 1+0 records out
> >
> > GREAT...this is one of the two things I would like to
> > restore. Fantastic. So it appears as if this is the first
> > thing on the tape...so I cd /u05/oracle/admin and run # mt
> > rewind # mt fsf 1 # dd if=/dev/rmt/0hn bs=1 skip=1 |
> > /usr/local/bin/tar -xf -
> > 107+0 records in
> > 107+0 records out
Ditto everything that Joshua says AND,
don't recover into anything but an empty directory on a
largly empty file system unless you know, and have practiced,
what you are doing.
I have a pretty good idea what I'm doing, and I have
practiced this technique. Yet I still recover to an
empty directory. Then transfer things if I'm happy
with what was recovered.
--
Jon H. LaBadie jon AT jgcomp DOT com
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)
|