Yeah, you need delete the line /mnt/CUSTOMER_DATA/i*
I did a test inside my test machine, please see the my example:
FileSet {
Name = "CD-i"
Include {
Options {
signature = MD5
Exclude = yes
WildDir = "*/\.cache"
WildDir = "/home/adami/CUSTOMER_DATA/i*/temp"
Wildfile = "/home/adami/*.rar"
Wildfile = "/home/adami/*.zip"
}
File = /home/adami/CUSTOMER_DATA
}
$ ls -l
-rw-r--r-- 1 adami adami 6 out 3 15:34 arq1.rar
-rw-r--r-- 1 adami adami 6 out 3 15:35 arq1.zip
-rw-r--r-- 1 adami adami 6 out 3 15:34 arq2.rar
-rw-r--r-- 1 adami adami 6 out 3 15:35 arq2.zip
drwxr-xr-x 3 adami adami 4096 out 3 15:44 inside1
-rw-r--r-- 1 adami adami 6 out 3 15:35 test01.txt
-rw-r--r-- 1 adami adami 6 out 3 15:35 test02.txt
$ ls -l inside/
-rw-r--r-- 1 adami adami 6 out 3 15:37 arq1.rar
-rw-r--r-- 1 adami adami 6 out 3 15:37 arq1.zip
-rw-r--r-- 1 adami adami 6 out 3 15:37 arq2.rar
-rw-r--r-- 1 adami adami 6 out 3 15:37 arq2.zip
drwxr-xr-x 2 adami adami 4096 out 3 15:45 temp
-rw-r--r-- 1 adami adami 6 out 3 15:37 test01.txt
-rw-r--r-- 1 adami adami 6 out 3 15:37 test02.txt
$ls -l inside/temp/
-rw-r--r-- 1 adami adami 6 out 3 15:45 temp1.txt
-rw-r--r-- 1 adami adami 6 out 3 15:45 temp2.txt
Bacula backup results
Atributo Arquivo File Id Status
-rw-r--r-- 1000 1000 03-Oct-22 15:35:34 6.00 bytes
/home/adami/CUSTOMER_DATA/test02.txt 584 OK
-rw-r--r-- 1000 1000 03-Oct-22 15:35:31 6.00 bytes
/home/adami/CUSTOMER_DATA/test01.txt 586 OK
-rw-r--r-- 1000 1000 03-Oct-22 15:37:26 6.00 bytes
/home/adami/CUSTOMER_DATA/inside1/test02.txt 583 OK
-rw-r--r-- 1000 1000 03-Oct-22 15:37:26 6.00 bytes
/home/adami/CUSTOMER_DATA/inside1/test01.txt 585 OK
drwxr-xr-x 1000 1000 03-Oct-22 15:44:25 4.00 KB
/home/adami/CUSTOMER_DATA/inside1/ 582 OK
drwxr-xr-x 1000 1000 03-Oct-22 15:45:35 4.00 KB /home/adami/CUSTOMER_DATA/
581 OK
Note didn´t copy the directory /temp
Eduardo A Adami
Em seg., 3 de out. de 2022 às 15:13, Dave <[email protected]> escreveu:
> Thanks for the response, but I want to include the /mnt/CUSTOMER_DATA/i*
> and exclude the /mnt/CUSTOMER_DATA/*/temp. Wouldn’t your exclude both?
>
>
>
>
>
> *From:* Eduardo Antonio Adami <[email protected]>
> *Sent:* Monday, October 3, 2022 12:35 PM
> *To:* [email protected]
> *Subject:* Re: [Bacula-users] wilddir not working for exclusion but is
> for inclusion
>
>
>
> Hi Dave, you can try to use only one option block!
>
>
>
>
>
> FileSet {
> Name = "CD-i"
> Include {
> Options {
> signature = SHA1
> Compression = GZIP9
>
> exclude = yes
>
> wilddir = "/mnt/CUSTOMER_DATA/i*"
>
> wildfile = "*.rar"
> wildfile = "*.zip"
> wilddir = "/mnt/CUSTOMER_DATA/i*/temp"
> }
> File = /mnt/CUSTOMER_DATA
> }
> }
>
>
>
>
>
> Best Regards
>
> Eduardo A Adami
>
>
>
>
>
>
>
> Em seg., 3 de out. de 2022 às 11:44, Dave <[email protected]>
> escreveu:
>
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> _______________________________________________
> Bacula-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users