Re: exact-match

2019-06-11 Thread Gene Heskett
On Tuesday 11 June 2019 10:28:50 am C. Scheeder wrote:

> Errm
> sorry to interup this all,
> but isn't the option
>   "exclude list "
> or
>   "exclude file "
> man amand.conf dosn't know the option "exclude" without being folowed
> by the word "file" or "list".
>
> Christoph
>
This is true, but again this is in reference to a dumptype.  That 
file/list however uses the ./ convention, anchoring to the point where 
the ./name is found. Now if a user creates a directory with spaces in 
the name, you have two problems because if she/he creates a birthday 
list, iirc he will get (if he/she has permission enough to do that) a 
subdir named birthday and another named list.

I'd have a tendency to want to put such a windows user in a sandbox he 
can't get out of, but inside they can make all the mess they want.

Fortunately I'm not faced with that situation here as I am the only
real user.  There are other users registered of course but only so I can  
sandbox a local compile.

> Am 11.06.19 um 15:54 schrieb Nuno Dias:
> > 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  -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  -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.
> >
> >> What version of Amanda is this?
> >
> > amanda-3.5.1-16.fc29.x86_64
> >
> >>Nathan
> >>
> >> ---
> >> -
> >> Nathan Stratton Treadway  -  natha...@ontko.com  -  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



Copyright 2019 by Maurice E. Heskett
Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: ***UNCHECKED*** exact-match

2019-06-11 Thread Gene Heskett
On Tuesday 11 June 2019 10:00:09 am Nuno Dias wrote:

>  Hi Gene,
>
>  The exclude here, is to exclude a subdir that are to big to go in one
> backup, that's the reason I have another line in the disklist so I can
> backup the exclude in next backup.
>
>  The quotes are necessary because sometimes users put spaces in file
> and dir names!!
>
I don't think so. The exclude is a single string beginning with a ./ 
which anchors it to that directory, so anything in ./auntmary is out of 
reach. If that dle has more than one auntmary subdir, they will all be 
skipped.

Reread the comments in your amanda.conf at the start of the dumptype's 
section.
 

> Cheers,
> Nuno
>
> On Tue, 2019-06-11 at 07:47 -0400, Gene Heskett wrote:
> > On Tuesday 11 June 2019 06:47:15 am 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/*"
> >
> > looks wrong, excludes are in the dumptype specified, in the
> > amanda,conf
> >
> > ./subdir in your exclude  s/b sufficient to block any and all access
> > below that level.  and the dbl-qoutes at not needed.
> >
> > All of this s/b in the dumptype section in your amanda.conf, and
> > your
> > disklist should contain only the dumptype which is then referenced
> > to
> > determine if there even is an exclude, or exclude list if more than
> > 1
> > exclude, in which case the name of the exclude list is any handy
> > name to
> > identify to you, which dumptype its to be used with.
> >
> > I don't believe the disklist is scanned for any exclude info, just
> > the
> > dumptype, that is what specifies all of that profile.
> >
> > > }
> > >
> > > 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?
> > >
> > > Thanks
> > > Nuno
> > >
> > > On Fri, 2019-06-07 at 16:37 -0400, Jon LaBadie wrote:
> > > > On Fri, Jun 07, 2019 at 11:04:48AM +0100, Nuno Dias wrote:
> > > > >  Hi,
> > > > >
> > > > >  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  -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  -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
> > > > >
> > > > >
> > > > >  From the amanda-match man page
> > > > >
> > > > >   /usr$
> > > > >   Will match the disks /usr but not /usr/local.
> > > > >
> > > > >  So, this is a bug or I'm doing something wrong?
> > > >
> > > > Not wrong, just a misconception.
> > > > The directory you give is a "starting" directory.  amdump will
> > > > backup everything under that directory unless it could cross
> > > > a mount point (file system) or if something is excluded.
> > > >
> > > > So, assuming you have a DLE for ".../2019" and that your
> >
> > "another"
> >
> > > > directory is the only problem, add a directive to the DLE to
> > > > exclude another.  If you don't have a DLE for 2019, PERHAPS
> > > > the -o option to amdump can be used to add an exclude directive.
> > > > I don't know if it can or cannot.
> > > >
> > > > Jon
> > > >
> > > > >  I'm using amanda-3.5.1-16.fc29.x86_64
> > > > >
> > > > > thanks,
> > > > > Nuno
> > > > > --
> > > > > Nuno Dias 
> > > > > LIP
> > > > >
> > > > > > > End of included message <<<
> >
> > Copyright 2019 by Maurice E. Heskett
> > Cheers, Gene Heskett
> > --
> > "There are four boxes to be used in defense of liberty:
> >  soap, ballot, jury, and ammo. Please use in that order."
> > -Ed Howdershelt (Author)
> > Genes Web page 



Copyright 2019 by Maurice E. Heskett
Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: ***UNCHECKED*** exact-match

2019-06-11 Thread Jon LaBadie
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 j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)


Re: ***UNCHECKED*** exact-match

2019-06-11 Thread Nathan Stratton Treadway
On Tue, Jun 11, 2019 at 07:47:20 -0400, Gene Heskett wrote:
> On Tuesday 11 June 2019 06:47:15 am Nuno Dias wrote:
> > This is what I have in disklist
> >
> > MACHINE /dir/subdir/name/2019   {
> >   tar
> >   exclude "./subdir/*"
> 
> All of this s/b in the dumptype section in your amanda.conf, and your 
> disklist should contain only the dumptype which is then referenced to 

Gene, this option is indeed defined in the dumptype for the DLE in
question, but using an "in-line" dumptype definition rather than a
separate dumptype defined in amanda.conf.  Search the disklist(5) man
page for "in-line" for more info.

(In this case you wouldn't want to have a separate dumptype defined in
your amanda.conf, because only this one partcular DLE uses that specific
exclude pattern.  For this sort of one-off use, you can just do it
in-line within the disklist file and avoid having to edit amanda.conf
for each one [and you don't have to come up with new names for all the
one-off dumptypes...].)


Nathan

Nathan Stratton Treadway  -  natha...@ontko.com  -  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


Re: exact-match

2019-06-11 Thread Nathan Stratton Treadway
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  -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  -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  -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  -  natha...@ontko.com  -  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


Re: exact-match

2019-06-11 Thread C. Scheeder

Errm
sorry to interup this all,
but isn't the option
 "exclude list "
or
 "exclude file "
man amand.conf dosn't know the option "exclude" without being folowed by 
the word "file" or "list".


Christoph

Am 11.06.19 um 15:54 schrieb Nuno Dias:

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


What version of Amanda is this?


amanda-3.5.1-16.fc29.x86_64



Nathan

---
-
Nathan Stratton Treadway  -  natha...@ontko.com  -  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


Re: ***UNCHECKED*** exact-match

2019-06-11 Thread Nuno Dias
 Hi Gene,

 The exclude here, is to exclude a subdir that are to big to go in one
backup, that's the reason I have another line in the disklist so I can
backup the exclude in next backup.

 The quotes are necessary because sometimes users put spaces in file
and dir names!!

Cheers,
Nuno

On Tue, 2019-06-11 at 07:47 -0400, Gene Heskett wrote:
> On Tuesday 11 June 2019 06:47:15 am 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/*"
> 
> looks wrong, excludes are in the dumptype specified, in the
> amanda,conf 
> 
> ./subdir in your exclude  s/b sufficient to block any and all access 
> below that level.  and the dbl-qoutes at not needed.
> 
> All of this s/b in the dumptype section in your amanda.conf, and
> your 
> disklist should contain only the dumptype which is then referenced
> to 
> determine if there even is an exclude, or exclude list if more than
> 1 
> exclude, in which case the name of the exclude list is any handy name
> to 
> identify to you, which dumptype its to be used with.
> 
> I don't believe the disklist is scanned for any exclude info, just
> the 
> dumptype, that is what specifies all of that profile.
> > }
> >
> > 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?
> >
> > Thanks
> > Nuno
> >
> > On Fri, 2019-06-07 at 16:37 -0400, Jon LaBadie wrote:
> > > On Fri, Jun 07, 2019 at 11:04:48AM +0100, Nuno Dias wrote:
> > > >  Hi,
> > > >
> > > >  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  -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  -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
> > > >
> > > >
> > > >  From the amanda-match man page
> > > >
> > > >   /usr$
> > > >   Will match the disks /usr but not /usr/local.
> > > >
> > > >  So, this is a bug or I'm doing something wrong?
> > >
> > > Not wrong, just a misconception.
> > > The directory you give is a "starting" directory.  amdump will
> > > backup everything under that directory unless it could cross
> > > a mount point (file system) or if something is excluded.
> > >
> > > So, assuming you have a DLE for ".../2019" and that your
> "another"
> > > directory is the only problem, add a directive to the DLE to
> > > exclude another.  If you don't have a DLE for 2019, PERHAPS
> > > the -o option to amdump can be used to add an exclude directive.
> > > I don't know if it can or cannot.
> > >
> > > Jon
> > >
> > > >  I'm using amanda-3.5.1-16.fc29.x86_64
> > > >
> > > > thanks,
> > > > Nuno
> > > > --
> > > > Nuno Dias 
> > > > LIP
> > > >
> > > > > > End of included message <<<
> 
> 
> 
> Copyright 2019 by Maurice E. Heskett
> Cheers, Gene Heskett
> -- 
> "There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> Genes Web page 
> 
-- 
Nuno Dias 
LIP


smime.p7s
Description: S/MIME cryptographic signature


Re: exact-match

2019-06-11 Thread Nuno Dias
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  -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  -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.
> 
> What version of Amanda is this?

amanda-3.5.1-16.fc29.x86_64

> 
>   Nathan
> 
> ---
> -
> Nathan Stratton Treadway  -  natha...@ontko.com  -  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
-- 
Nuno Dias 
LIP


smime.p7s
Description: S/MIME cryptographic signature


Re: ***UNCHECKED*** exact-match

2019-06-11 Thread Gene Heskett
On Tuesday 11 June 2019 06:47:15 am 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/*"

looks wrong, excludes are in the dumptype specified, in the amanda,conf 

./subdir in your exclude  s/b sufficient to block any and all access 
below that level.  and the dbl-qoutes at not needed.

All of this s/b in the dumptype section in your amanda.conf, and your 
disklist should contain only the dumptype which is then referenced to 
determine if there even is an exclude, or exclude list if more than 1 
exclude, in which case the name of the exclude list is any handy name to 
identify to you, which dumptype its to be used with.

I don't believe the disklist is scanned for any exclude info, just the 
dumptype, that is what specifies all of that profile.
> }
>
> 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?
>
> Thanks
> Nuno
>
> On Fri, 2019-06-07 at 16:37 -0400, Jon LaBadie wrote:
> > On Fri, Jun 07, 2019 at 11:04:48AM +0100, Nuno Dias wrote:
> > >  Hi,
> > >
> > >  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  -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  -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
> > >
> > >
> > >  From the amanda-match man page
> > >
> > >   /usr$
> > >   Will match the disks /usr but not /usr/local.
> > >
> > >  So, this is a bug or I'm doing something wrong?
> >
> > Not wrong, just a misconception.
> > The directory you give is a "starting" directory.  amdump will
> > backup everything under that directory unless it could cross
> > a mount point (file system) or if something is excluded.
> >
> > So, assuming you have a DLE for ".../2019" and that your "another"
> > directory is the only problem, add a directive to the DLE to
> > exclude another.  If you don't have a DLE for 2019, PERHAPS
> > the -o option to amdump can be used to add an exclude directive.
> > I don't know if it can or cannot.
> >
> > Jon
> >
> > >  I'm using amanda-3.5.1-16.fc29.x86_64
> > >
> > > thanks,
> > > Nuno
> > > --
> > > Nuno Dias 
> > > LIP
> > >
> > > > > End of included message <<<



Copyright 2019 by Maurice E. Heskett
Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: exact-match

2019-06-11 Thread Nathan Stratton Treadway
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  -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  -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?)

What version of Amanda is this?

Nathan


Nathan Stratton Treadway  -  natha...@ontko.com  -  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


Re: ***UNCHECKED*** exact-match

2019-06-11 Thread Nuno Dias
 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? 

Thanks
Nuno

On Fri, 2019-06-07 at 16:37 -0400, Jon LaBadie wrote:
> On Fri, Jun 07, 2019 at 11:04:48AM +0100, Nuno Dias wrote:
> >  Hi,
> > 
> >  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  -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  -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
> > 
> > 
> >  From the amanda-match man page
> > 
> >   /usr$
> >   Will match the disks /usr but not /usr/local.
> > 
> >  So, this is a bug or I'm doing something wrong?
> > 
> Not wrong, just a misconception.
> The directory you give is a "starting" directory.  amdump will
> backup everything under that directory unless it could cross
> a mount point (file system) or if something is excluded.
> 
> So, assuming you have a DLE for ".../2019" and that your "another"
> directory is the only problem, add a directive to the DLE to
> exclude another.  If you don't have a DLE for 2019, PERHAPS
> the -o option to amdump can be used to add an exclude directive.
> I don't know if it can or cannot.
> 
> Jon
> >  I'm using amanda-3.5.1-16.fc29.x86_64
> > 
> > thanks,
> > Nuno
> > -- 
> > Nuno Dias 
> > LIP
> > > > End of included message <<<
-- 
Nuno Dias 
LIP


smime.p7s
Description: S/MIME cryptographic signature