On Thursday 05 February 2004 09:02, stan wrote:
>On Thu, Feb 05, 2004 at 08:03:16AM -0500, Joshua Baker-LePain wrote:
>> On Thu, 5 Feb 2004 at 7:49am, stan wrote
>>
>> > Note that for the 2 disks in question, both partial backusp
>> > claim identical size. I beileve that is because they are
>> > assuming the size of the entire partion.
>> >
>> > # black ad1s1e comp-user-no-compress 2 local
>> > black ads1e/ak ad1s1e {
>> > include "./[A-K]*"
>> > exclude "./[L-z]*"
>> > user-tar-no-compress
>> > } 2 local
>> > black ads1e/kz ad1s1e {
>> > include "./[L-z]*"
>> > user-tar-no-compress
>> > } 2 local
>> >
>> > And here is teh dumptupe definition:
>> >
>> > define dumptype root-tar {
>> > program "GNUTAR"
>> > comment "root partitions dumped with tar"
>> > compress none
>> > index
>> > exclude list "/usr/local/lib/amanda/exclude.gtar"
>> > priority low
>> > }
>> >
>> > define dumptype user-tar-no-compress {
>> > compress none
>> > root-tar
>> > comment "user partitions dumped with tar"
>> > priority medium
>> > }
>>
>> The short answer is that order matters. In your disklist entries
>> (DLEs), you specify include, exclude, and then the dumptype. But
>> the dumptype specifies its own exclude (list). In amanda(8), in
>> the part about 'exclude' in the dumptype section, it states that
>> "With the append keyword, the string are appended to the current
>> value of the list, without it, the string overwrite the list."
>> IOW, the 'exclude list' line in the dumptype is overriding the
>> include and exclude directives in your DLEs.
>>
>> So, change your DLEs to specify the dumptype first. Then your
>> include and exclude directives will override those in the
>> dumptype.
>
>I'm confused. The dumptype is defined in amanda.conf, and only the
> disks to backup are defined in the disklist file. I assume that
> amanda.conf is read first, right?
Correct, but when you reference an already defined dumptype, that is
read into *this* specification, including its exclude pattern.
Therefore, if you want a different exclude pattern or file, it must
be specified after the included dumptype so that it can replace the
one in the dumptype.
> The disks are shown in my email
> in the order that they appear in the disklists file.
>
>Should I just remove the exclude file line in the dumptype?
If its not being used anyplace else, you can remove it.
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.22% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.
|