Hi all,

 Sorry to only now reply to this, but I was testing ... so the problem
is this

If I have something like this in disklist

----------------------------------
MACHINE   /dir   {
        tar
        exclude "./subdir/*"
}

MACHINE /dir/subdir tar
----------------------------------
 
and run

$ amdump CONF MACHINE ^/dir$
or
$ amdump CONF MACHINE =/dir

It works as expected the only backup made is /dir

But if I have something like this

----------------------------------
MACHINE   /dir   {
        tar
        exclude "./subdir/*"
}

MACHINE /dir/subdir /dir {
        tar
        include "./subdir/*"
}
----------------------------------

the commands 

$ amdump CONF MACHINE ^/dir$
and 
$ amdump CONF MACHINE =/dir

 Don't work as expected, both backups (/dir and /dir/subdir) are made

 From "man disklist"

diskname
    The name of the disk (a label). In most case, you set your diskname
    to the diskdevice and you don't set the diskdevice.  If you want
    multiple entries with the same diskdevice, you must set a different
    diskname for each entry. It's the diskname that you use on the
    commandline for any Amanda command. Look at the example/disklist
    file for example.

 So from this, if it's the diskname that is used in the command, it
seems that the reality is amdump is using the diskdevice instead!!

Cheers,
Nuno

On Mon, 2019-06-17 at 21:47 +0000, Debra S Baddorf wrote:
> I’ve been on vacation, so I’m coming late to this discussion.
> I’ve had problems trying to one-off dump a DLE  is its name matches
> another name.   It’s true we haven’t answered why the $ doesn’t fix
> that.
> But --
> 
> I give them “nicknames”.
> 
> disklist file:
> MACHINE   Main2019  /dir/subdir/name/2019 …..  {
>  tar
>  exclude "./subdir/*"
> 
> }
> 
> MACHINE   SubOf2019  /dir/subdir/name/2019/subdir   tar
> 
> Then I do dumps or restores by using the “nickname”  which is not
> multiple matched.
> 
> amdump CONFIG   MACHINE  Main2019
> amdump CONFIG MACHINE  SubOf2019
> 
> Deb Baddorf
> Fermilab
> 
> > On Jun 11, 2019, at 9:32 PM, Jon LaBadie <[email protected]> wrote:
> > 
> > On Tue, Jun 11, 2019 at 11:47:15AM +0100, Nuno Dias wrote:
> > > Thanks, but I'm already doing that (the exclude)
> > > 
> > > This is what I have in disklist
> > > 
> > > MACHINE   /dir/subdir/name/2019   {
> > >  tar
> > >  exclude "./subdir/*"
> > > 
> > > }
> > > 
> > > MACHINE /dir/subdir/name/2019/subdir tar
> > > 
> > > Because this are very big directories, I want to dump only one
> > > every
> > > time, anyone know how I can do this? 
> > > 
> > 
> > Two ideas
> > 
> > 1) instead of trying to exclude everything you don't want,
> > consider including the one you do want.  That should auto-
> > exclude all else.
> > 
> > 2) have a separate DLE for each directory you want.  Have
> > them do only full backups.  Run your amdump in such a way
> > that only one DLE is dumped each day.
> > 
> > -- 
> > Jon H. LaBadie                 [email protected]
> > 11226 South Shore Rd.          (703) 787-0688 (H)
> > Reston, VA  20190              (703) 935-6720 (C)
> 
> 
-- 
Nuno Dias <[email protected]>
LIP

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to