Bacula uses on the first Options clause that matches (in the order they are written) to decide whether to include or exclude something. If no clauses match, then the item is backed up using the options (e.g. Compression) from the final clause.
The problem with your clauses is that directories such as /mnt/CUSTOMER_DATA/ifoo/temp first matches /mnt/CUSTOMER_DATA/i* so will be included. You need something like this: FileSet { Name = "CD-i" Include { Options { # exclude rar/zip files and temp dir wildfile = "*.rar" wildfile = "*.zip" wilddir = "/mnt/CUSTOMER_DATA/i*/temp" exclude = yes } Options { # include some dirs signature = SHA1 Compression = GZIP9 wilddir = "/mnt/CUSTOMER_DATA/i*" } Options { # exclude everything else at top level, but not top level itself signature = SHA1 Compression = GZIP9 Regex = "^/mnt/CUSTOMER_DATA/[^/]+$" exclude = yes } # everything else is included by default using the final options File = /mnt/CUSTOMER_DATA } } __Martin >>>>> On Mon, 3 Oct 2022 09:26:05 -0500, Dave said: > > I'm running Bacula 9.0.6 and cannot seem to get a wilddir exclusion to work. > My fileset is: > > FileSet { > Name = "CD-i" > Include { > Options { > signature = SHA1 > Compression = GZIP9 > wilddir = "/mnt/CUSTOMER_DATA/i*" > } > Options { > RegexDir = ".*" > wildfile = "*.rar" > wildfile = "*.zip" > wilddir = "/mnt/CUSTOMER_DATA/i*/temp" > exclude = yes > } > File = /mnt/CUSTOMER_DATA > } > } > > There are a few hundred gigs of data in a few temp subdirectories and it > continues to be backed up. Is there some sort of issue with how I have this > configured? I did also try the following with the same results: > > wilddir = "/mnt/CUSTOMER_DATA/*/temp" _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users