This should be mentioned in the user manual.
Here are 2 points that should be mentioned in the user manual regarding selection filters and use of wildcards:
-
If you use a filter to select files in a folder by use of wildcards it is not sufficient to create the filter including the total path. You also have to separately select the folder in which the wildcards are to be applied - either by using the file tree or by typing the path directly.
-
If you use a filter to make a selection and you further want to select other folders or drives you must do this by creating a filter for each of these.
Here is an illustrative example:
I had a backup for my Home drive and a Data drive (both auto mounted in fstab). I selected these drives in the file tree. The backup worked fine.
Then I wanted also to backup my wine desktop files, so I added the path string/usr/share/applications/wine*.desktop.
No desktop files were backed up? After some digging through the manual and forums I came across a statement that wildcards could not be used in path strings.
Aha, then I made an including filter:
/usr/share/applications/wine*.desktop
Error stating that no folder was selected!!!? (hmm, I had defined the full path to the folder in the filter?) Then it crossed my mind that maybe there should also be a path definition, so I entered the path in the path field:
/usr/share/applications/
Now I got the desktop files backed up
BUT
now my Home and Data drives were suddenly no longer backed up. They only had 2 warnings stating that permission was denied to “lost+found”.
These warnings always used to be there, but the backup of the rest should not be aborted.
To make a rather long story short I finally defined a filter for both drives while still selecting their paths:
Path: /home/
Filter: /home/
and
Path: /Data_Linux/
Filter: /Data_linux/
Now the backup worked as intended.
Conclusion:
If you start using a filter to select files in a folder, you have to use filters on all source folders even though you want to include all files in the folders. Additionally you must select their paths either in the path statement box or in the file tree.
This is not obvious and should be mentioned in the user manuals filter section.
System info:
Duplicati version 2.2.0.1 stable
Fedora 43, GNOME
Lenovo Think Pad P1
16GB RAM
2 x 500GB SSD