Amanda-Users

Re: amrecover: 'Invalid directory' errors

2004-04-14 00:53:17
Subject: Re: amrecover: 'Invalid directory' errors
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Wed, 14 Apr 2004 00:49:56 -0400
On Tue, Apr 13, 2004 at 07:53:07PM -0700, Bruce Fletcher wrote:
> Hello,
> 
...
> cookie /usr /usr {
>         cookie-comp
>         exclude "./local" "./ports" "./src"
> }
> 
> cookie /var cookie-comp
> cookie /home/bruce cookie-comp
> cookie /usr/local cookie-comp
> cookie /usr/ports cookie-comp
> cookie /usr/src cookie-comp
> 
> 
...
> 
> The problem I'm having is that amrecover says /usr/local, /usr/ports and
> /usr/src and /home/bruce don't exist in my backup index.  The symptoms are
> identical, but just looking at /usr, I get the following behaviour from
> amrecover:
> 
> 
> # cd /usr/src
> # ls
> CVS      distrib  include  libexec  sbin     sys      usr.sbin
> Makefile etc      lib      regress  share    usr.bin
> # /usr/local/sbin/amrecover -C Daily -d /dev/nst0
> AMRECOVER Version 2.4.4p1. Contacting server on philly ...
> 220 philly2 AMANDA index server (2.4.4p1) ready.
> 200 Access OK
> Setting restore date to today (2004-04-13)
> 200 Working date set to 2004-04-13.
> 200 Config set to Daily.
> 200 Dump host set to cookie.
> Trying disk /usr ...
> $CWD '/usr/src' is on disk '/usr' mounted at '/usr'.
> 200 Disk set to /usr.            <<<=====
> Invalid directory - /usr/src
...
> amrecover> cd src
> Invalid directory - src
> amrecover>
> 
> 
> Why are /usr/src, /usr/ports and /usr/local all missing from the above
> list? How am I supposed to find and recover things under these
> subdirectories? I see no signs of trouble in my backup status messages:
> 

Note the line marked <<<=====, amrecover is using your DLE /usr.
In that DLE ./src is excluded.  But you do have another DLE for
/usr/src.  Tell amrecover to use that DLE, don't accept its choice.
(setdisk)

-- 
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)

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