Hello Sergey,

FYI: I have filed bug #591 for this issue:
https://bugs.bareos.org/view.php?id=591

So we do not lose that information.

best regards,

Philipp

On 05.01.2016 19:22, Сергей Коньков wrote:
> Hello Philipp,
> 
> 05.01.2016 11:46, Philipp Storz wrote:
>> Hello Sergey,
>>
>> On 05.01.2016 00:09, Сергей Коньков wrote:
>>> Dear fellow users,
>>>
>>> I'm just starting with Bareos. Please, can someone explain a certain oddity 
>>> with Fileset Include
>>> Options?
>>>
>>> I've got the following in my config:
>>>
>>> ============================
>>>
>>> ============================
>>>
>>> The idea is simple: I'd like to use SHA1 signature and compress everything, 
>>> while excluding a few
>>> things.
>>> However, when I use bconsole command "show filesets", the fileset becomes 
>>> like this:
>>>
>>> ============================
>>>
>>> ============================
>>>
>>> The two Options blocks are joined together. Why?
>> I guess this is a bug/limitation of the code that creates the configuration 
>> in text form
>> out of the internal representation of the fileset definition.
>>
> 
> Yes, seems like this is the case.
> 
>>> I didn't check thoroughly, but it seems because of this I'm missing 
>>> compression (i.e. observing no
>>> substantial effect of compression). AFAIK if there is any match clauses 
>>> inside an Options block, the
>>> relevant options would be applied only to matched files / dirs (source: the 
>>> docs). It seems as if
>>> compression option is applied to excluded items.
>> Please check first if your fileset does what you expect.
>>
>> I would expect that it does, and that the code that creates the fileset out 
>> of the internal
>> representation is not sophisticated enough to translate the fileset back 
>> into the text format.
>>
>> Please report the results of your tests, so that we know where the problem 
>> is.
> 
> I've tried to do an actual backup with the config I specified - and 
> compression is working now. I
> have been too determined to get a normal "show filesets" output before trying 
> to do an actual
> backup. "Show filesets" still prints joined blocks.
> 
> As for my previous result with no compression, I think my Options blocks were 
> in reverse order (i.e.
> excludes last), and IIRC the defaults must be in the last Options block.
> 
> Thank you for pointing me in the right direction.
> 
> Best regards,
> Sergey Konkov


-- 
Mit freundlichen Grüßen

 Philipp Storz                             [email protected]
 Bareos GmbH & Co. KG                      Phone: +49 221 63 06 93-92
 http://www.bareos.com                     Fax:   +49 221 63 06 93-10

 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
 Geschäftsführer: Stephan Dühr, M. Außendorf,
 J. Steffens, P. Storz, M. v. Wieringen

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to