>>>>> On Tue, 31 Oct 2023 16:33:47 +0100, Marco Gaiarin said:
>
> Mandi! Martin Simmons
> In chel di` si favelave...
>
> > The problem is that your second options clauses matches the directory
> > "C:/Program Files" so that is excluded and the first options clause is never
> > used.
> > Have a look at the example about "My Pictures" in
> > https://www.bacula.org/13.0.x-manuals/en/main/Configuring_Director.html#SECTION00221100000000000000000
> > to see how to set it up.
>
> OK, now i use:
>
> FileSet {
> Name = ArmeoStd
> Description = "Backup dati Hocoma/Armeo"
> Enable VSS = yes
>
> Include {
> File = "C:/"
>
> Options {
> Signature = MD5
> Ignore Case = yes
>
> WildDir = "C:/Program Files*"
> WildDir = "C:/Program Files*/Hocoma"
> Wild = "C:/Program Files*/Hocoma/*"
> }
>
> Options {
> Exclude = yes
> Ignore Case = yes
>
> Wild = "C:/*"
> }
> }
>
> Include {
> File = "D:/"
>
> Options {
> Signature = MD5
> Ignore Case = yes
> }
> }
> }
>
>
> And worked, but i found in backup also *ALL* the folders/directory in
> 'C:/Program Files' and 'C:\Program Files (x86)'. Only the folder, not the
> files. Files are correctly only in the 'Hocoma' dir.
Yes, that is expected. The problem with
WildDir = "C:/Program Files*"
is that it matches all directories starting with "C:/Program Files" (see the
comment about using RegExDir in the example in the manual).
I think this will work:
RegExDir = "^C:/Program Files[^/]*$"
WildDir = "C:/Program Files*/Hocoma"
Wild = "C:/Program Files*/Hocoma/*"
Alternatively, assuming you only have the two normal Program Files
directories, then you could list them both explicitly to avoid ending in *:
WildDir = "C:/Program Files"
WildDir = "C:/Program Files (x86)"
WildDir = "C:/Program Files*/Hocoma"
Wild = "C:/Program Files*/Hocoma/*"
> reading the manual in the link above, i supposed that the row:
>
> WildDir = "C:/Program Files*"
> WildDir = "C:/Program Files*/Hocoma"
>
> was needed to ''descend'' in the Hocoma dir, but this behaviour make me
> suppose that probably:
>
> Wild = "C:/Program Files*/Hocoma/*"
>
> suffices... i've tried to remove them, and does not work: 'C:/' virtual file
> in bacula was empty.
Yes, the reason that a single Wild does not suffice is the same problem as I
mentioned originally.
__Martin
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users