Do not save directories containing a word

Hello,

-*zEx*/
-*ASUP*/
-*cache*/
-*zTmp*/

I installed the following rules on a backup

  • on a backup it worked
  • on another backup (or I made a copy / paste of rules), it does not work

Is there anything important to know?
My directories have different terms with capital letters, do I have to make as many rules? or
how to indicate not to tarnish uppercase / lowercase?

I tried the option to do a test, but I don’t see a list of directories of the tested backup, which would allow me to see if it works. So I have to start the long backup. Any idea to solve this other (small) problem?
Thank you

By testing, filters on Linux seem case-sensitive for wildcards and regular expressions, but regular expressions let you make them case-insensitive when you like, as seen in the last example below:

$ find /tmp/filtercase
/tmp/filtercase
/tmp/filtercase/ASUP
/tmp/filtercase/ASUP/file
/tmp/filtercase/zEx
/tmp/filtercase/zEx/file
$ duplicati-cli test-filters /tmp/filtercase --exclude='*zex*/'
Including source path: /tmp/filtercase/
Including path as no filters matched: /tmp/filtercase/ASUP/
Including path as no filters matched: /tmp/filtercase/zEx/
Including path as no filters matched: /tmp/filtercase/zEx/file
Including path as no filters matched: /tmp/filtercase/ASUP/file
Matched 2 files (0 bytes)
$ duplicati-cli test-filters /tmp/filtercase --exclude='*zEx*/'
Including source path: /tmp/filtercase/
Including path as no filters matched: /tmp/filtercase/ASUP/
Excluding path due to filter: /tmp/filtercase/zEx/ => (*zEx*/)
Including path as no filters matched: /tmp/filtercase/ASUP/file
Matched 1 files (0 bytes)
$ duplicati-cli test-filters /tmp/filtercase --exclude='[(?i).*zex.*/]'
Including source path: /tmp/filtercase/
Including path as no filters matched: /tmp/filtercase/ASUP/
Excluding path due to filter: /tmp/filtercase/zEx/ => ([(?i).*zex.*/])
Including path as no filters matched: /tmp/filtercase/ASUP/file
Matched 1 files (0 bytes)
$ 

Regular Expression Language - Quick Reference has a section
Miscellaneous Constructs whose first example is like the above.

2 Likes