Per default, all files and folders will be backed up. That means, if no rule matches, the file or folder will be included. In the special case that all rules are include rules (which does not make sense when all files and folders are included per default) Duplicati assumes that all other files and folders are meant to be excluded
So if you remove your exclude rule and only --include="C:\Path*.exe then it should work the way you want it
First variant: I have empty dirs in backup. I don’t undestand why '*" was included to my backup?
Second variant: I have no files. But why whole dir was excluded? Why not only end-point dir?
I don’t think I follow what it is you’re trying to do.
You want ONLY paths that include .au3 and .docx files in them? If so then this is the section of the Filters link above that should apply:
Include specific files only. You have a folder structure that contains a lot of photos and movies from your camera. For some reason you only want to include the photos to your backup. The rule for your backup is +.jpg +.jpeg.
To do this for your file types, in the GUI you’d want to select “Include expression” and put *.au3 then do another “Include expression” and put *.docx.
In your second variant above, you told Duplicati to exclude anything that was a folder. Since exclude rules take precedence over include rules, you effectively ran your job with NO includes.
Or you can use “Include Regular Expression”. I have made an example a few minutes ago for an exclusion of bak and tmp files. This can also be used for an include definition. Have a look here
You might be able to use an exclude regular expression that excludes anything that does NOT end with .au3 or .docx, but I haven’t tested that yet.
Why are you worried about empty paths? Actually, have you tried doing a test restore to see if those empty paths are stored in the backup? It’s possible the “Including path due to filter” message may mean that it’s including that path when scanning for files rather than actually including it in the backup…
Adding to @JonMikelV, you cannot remove the folders. Duplicati needs to include the folders, otherwise it will not look inside for the files. If you exclude all folders you also exclude the files.
In an earlier version we had an --exclude-empty-folders option, but this has not been implemented again.
Thanks to @JonMikelV and you. In restore I have not empty folders what excluded files. I don’t know about other cases.
So it’s good works now. But better if will be more clear for new users. Also about this: “Duplicati needs to include the folders, otherwise it will not look inside for the files. If you exclude all folders you also exclude the files.”.