Amanda-Users

Re: amrestore usage?

2003-05-23 12:29:56
Subject: Re: amrestore usage?
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: "Richard Russell" <richard AT yellowgoanna DOT com>, amanda-users AT amanda DOT org
Date: Fri, 23 May 2003 12:27:33 -0400
On Friday 23 May 2003 09:33, Richard Russell wrote:
>Hi all,
>
>I'm trying to work out how to restore a specific file (or group of
>files) using amrestore and the output from amrecover's list
> command.
>
>ie: I use amrecover to select a bunch-o-files, and then type 'list
>/tmp/restore_me'... the file /tmp/restore_me contains data like
> this:
>
>TAPE Daily-02 LEVEL 0 DATE 2003-05-17
>        /bar/quux
>TAPE Daily-05 LEVEL 0 DATE 2003-05-20
>        /foo
>        /bar/baz
>
>I am trying to write a script that will parse this, and
> (automagically knowing the right host and DLE) will restore these
> files into a specific directory. However, i can't even construct
> an amrestore command to do so...
>
>These are some of my attempts (where host is localhost and the
> relevant DLE is /export/home):
>
>sudo amrestore -p /dev/nst0 localhost /export/home 20030520|tar
> tvf - sudo amrestore -p /dev/nst0 localhost _export_home
> 20030520|tar tvf - sudo amrestore -p /dev/nst0
> localhost./export/home.20030520|tar tvf - sudo amrestore -p
> /dev/nst0 localhost._export_home.20030520|tar tvf - sudo
> amrestore -p /dev/nst0 localhost /export/home 20030520 0|tar tvf
> - sudo amrestore -p /dev/nst0 localhost _export_home 20030520
> 0|tar tvf - sudo amrestore -p /dev/nst0
> localhost./export/home.20030520.0|tar tvf - sudo amrestore -p
> /dev/nst0 localhost._export_home.20030520.0|tar tvf -
>
>But no matter what, I seem to come up with the same thing:
>
>amrestore:   0: skipping start of tape: date 20030520 label
> Daily-00 amrestore:   1: skipping localhost._boot.20030520.0
>amrestore:   2: skipping localhost._.20030520.0
>amrestore:   3: skipping localhost._usr.20030520.0
>amrestore:   4: skipping localhost._export_home.20030520.0
>amrestore:   5: reached end of tape: date 20030520
>
>It appears to me as if it's sckipping the very record I want
> (#4)...
>
>What am I doing wrong?

Using localhost.  As the docs say, use the FQDN, even for disks 
local to the machine because amanda is a client server organized
progem.

>rr

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.26% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.


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