Bacula-users

Re: [Bacula-users] Bacula 2.4.4 : Need some help about Exclude

2010-01-18 19:53:57
Subject: Re: [Bacula-users] Bacula 2.4.4 : Need some help about Exclude
From: Dan Langille <dan AT langille DOT org>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 18 Jan 2010 19:16:02 -0500
Arno Lehmann wrote:
> Hello,
> 
> 18.01.2010 15:21, Cyril Lavier wrote:
>> Hi.
>>
>> I read the documentation about the FileSet configuration, but I have 
>> some problems doing a correct Exclude rule
>>
>> I need to exclude from the backup all file/folder which first character 
>> of the filename is "_".
>>
>> Here is the name of the FileSet :
>>
>> FileSet {
>>   Name = "Users"
>>   Include {
>>      Options {
>>         Exclude = yes
>>         WildDir = "_*"
>>         WildFile = "_*"       
>>      }
>         Options {
>            signature = sha1
>            verify = pnugsi
>         }
>>      File = /users/
>>   }
>> }
>>
>> This setting is not apparently working.
> 
> Add the Options stuff given above after the existing options, because 
> (from the manual): "Once Bacula determines that the Options resource 
> matches the file under consideration, that file will be saved without 
> looking at any other Options resources that may be present. This means 
> that any wild cards must appear before an Options resource without 
> wild cards.
> 
> If for some reason, Bacula checks all the Options resources to a file 
> under consideration for backup, but there are no matches (generally 
> because of wild cards that don't match), Bacula as a default will then 
> backup the file. This is quite logical if you consider the case of no 
> Options clause is specified, where you want everything to be backed 
> up, and it is important to keep in mind when excluding as mentioned above.
> 
> However, one additional point is that in the case that no match was 
> found, Bacula will use the options found in the last Options resource. 
> As a consequence, if you want a particular set of "default" options, 
> you should put them in an Options resource after any other Options."
> 
> That should explain what you see...
> 
> Cheers,

Also, see bwild, a utility for testing wild cards.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users