On Tue, Jun 11, 2019 at 14:54:29 +0100, Nuno Dias wrote:
> On Tue, 2019-06-11 at 07:04 -0400, Nathan Stratton Treadway wrote:
> > On Fri, Jun 07, 2019 at 11:04:48 +0100, Nuno Dias wrote:
> > >  I'm trying to use amanda to backup only one dir from a list of
> > > dirs
> > > that are in disklist file
> > > 
> > > I run amdump like this
> > > 
> > > $ /usr/sbin/amdump XXXX -o reserve=0 --no-taper MACHINE
> > > ^/dir/subdir/name/2019$
> > > 
> > > and with ps I can see the amdump running
> > > 
> > > /usr/bin/perl /usr/sbin/amdump XXXX -o reserve=0 --no-taper MACHINE
> > > ^/dir/subdir/name/2019$
> > > 
> > > The problem is instead of only one dir I have two dirs in the
> > > backup
> > > 
> > > MACHINE:/dir/subdir/name/2019     20190606153859 0       486g
> > > dumping
> > > (18g done (3.74%)) (15:39:26)
> > > 
> > > MACHINE:/dir/subdir/name/2019/another     20190606153859
> > > 1       244g
> > > wait for dumping
> > 
> > Am I correct you have many DLEs in your disklist file, and if you
> > don't
> > put the "MACHINE ^/dir/subdir/name/2019$" on the amdump line they all
> > get dumped?  (That is, the "match" is mostly is working to restrict
> > the
> > DLEs dumped, only the trailing "$" is not working?)
> 
>  Yes, to all the questions.

This doesn't resolve the question about the trailing "$", but what
happens when you try
  $ /usr/sbin/amdump XXXX -o reserve=0 --no-taper MACHINE =/dir/subdir/name/2019
?
(That is a literal "=" in front of the final DLE path argument.)

That should turn on "exact match" mode for that DLE pattern, which
hopefully will match only the single DLE you actually want to match
here....

                                                        Nathan

----------------------------------------------------------------------------
Nathan Stratton Treadway  -  [email protected]  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239

Reply via email to