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 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 > > > 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 <nd...@lip.pt> > LIP >>> End of included message <<< -- Jon H. LaBadie j...@jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)