Amanda-Users

Re: Restoring without Amanda

2005-09-07 15:47:47
Subject: Re: Restoring without Amanda
From: Tony van der Hoff <lists AT nospam.vanderhoff DOT org>
To: amanda-users AT amanda DOT org
Date: Wed, 7 Sep 2005 20:36:20 +0100
Jon LaBadie <jon AT jgcomp DOT com> wrote in message
<20050907181350.GA2260 AT butch.jgcomp DOT com>

> On Wed, Sep 07, 2005 at 10:32:47AM -0400, Joshua Baker-LePain wrote:
> > On Wed, 7 Sep 2005 at 10:03am, Vytas Janusauskas wrote
> > 
> > > So I:
> > >   mt -t /dev/nst0 rewind
> > >   mt -t /dev/nst0 fsf 2
> > > dd if=/dev/nst0 bs=32k count=1
> > > 
> > > 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... -
> > > 

step 1

> > > 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  ????
> > 
> > dd if=/dev/nst0 bs=32k skip=1 | /bin/gzip -dc | /bin/gtar -f -
> > 
> > Note the trailing hyphen, which tells tar to read from stdin.
> 
> 
> Vytas, Tony,
> 
> Would the header message have been any clearer if it said
> 
>    dd if=<tape> bs=32k skip=1 | /bin/gzip -dc | bin/tar -...f -
> 
> or maybe
> 
> dd if=<tape> bs=32k skip=1 | /bin/gzip -dc | bin/tar -<tar_options> -f -
> 

yes, personally, I had no problem with the hyphen, but ...

I posted last week that my confusion had arisen out of the "skip=1", having
located the required archive. The need to rewind and skip 2 files in this
case could have been avoided at step 1 above. Now *that* would make a
difference.

Cheers, Tony
-- 
Tony van der Hoff          | mailto:tony AT vanderhoff DOT org
Buckinghamshire, England

<Prev in Thread] Current Thread [Next in Thread>