Exclude files
November 9, 2021
12:05 PM
Exclude Files and Directories via Filter
Files and directories are only considered for synchronization if they pass all filter rules: They have to match at least one entry in the include list and none of the entries in the exclude list as presented in the filter configuration dialog.
Each list item must be a file or directory path relative to the selected base directories.
Multiple items must be separated by | or a new line.
Wild cards * and ? may be used: * means zero or more characters while ? represents exactly one character.
File matching is case-insensitive
Example: Match items of a folder pair
The following filter phrases assume a folder pair [path] <-> [path] and can be used for the include as well as exclude filter.
Filter description
Filter phrase
Single file [path]
[file]
Single folder [path]
\SubFolder\
All files (and folders) named [file]
[file]
All files (and folders) starting with the Z character
*\z*
All *.tmp files located in [path]
[file]
Files and folders containing temp somewhere in their path
*temp*
Multiple entries separated by vertical bar
*.tmp | *.doc | *.bak
All subdirectories of the base directories
*\
*.txt files located in subdirectories of base directories
\*\*.txt
Example: Exclude a sub folder except for certain files
Set up two folder pairs with the same source and target paths but with distinct local filters:
Folder pair 1: local exclude filter \SubFolder\
Folder pair 2: local include filter [file]
Example: Exclude empty folders
Set up a file size filter with a lower limit of 0 bytes. Both the time span and file size filters match files only, so this will exclude all folders. During synchronization however some excluded folders will still be synchronized if they contain at least one non-excluded item, i.e. when they are not empty.
From <[link]> 