Hallo
include
\movie\media\*.sc
\movie\serrec\*.sc
exclude
\movie\*.sc
I have the following problem: I want to exclude certain files from a folder, but this folder also has subfolders in which these files are also located and should remain included.
I can't configure this, these files are also excluded from the subfolders without a filter existing for them.
Robert
Filter fehler ????
- Posts: 2
- Joined: 14 Mar 2025
-
- Posts: 2946
- Joined: 22 Aug 2012
Look at Example: Complex filter rules with exceptions
For your use case you would need two left-right folder pairs.
There are various possibilities
Assuming your present left and right base location are respectively [BaseFolderLeft] and [BaseFolderRight], you could e.g. use
Pair 1: [BaseFolderLeft] and [BaseFolderRight]
with Local Exclude Filter rule: \movie\*.sc
Pair 2: [BaseFolderLeft]\movie and [BaseFolderRight]\movie
with Local Include Filter rule: \*\*.sc
Pair 1 will sync all items in [BaseFolderLeft] with [BaseFolderRight], except for any *.sc files in \movie\ , nor in any of \movie\ 's subfolders.
Pair 2 will sync all *.sc files in the subfolders of \movie\ in [BaseFolderLeft]\movie with [BaseFolderRight]\movie , but not the *.sc files in \movie\ itself.
The only assumption here is that the folder \movie\ does not contain a direct child subfolder also named "movie".
Note that local filter rules are set using the funnel-icon mid-between each of the left-right pairs.
For your use case you would need two left-right folder pairs.
There are various possibilities
Assuming your present left and right base location are respectively [BaseFolderLeft] and [BaseFolderRight], you could e.g. use
Pair 1: [BaseFolderLeft] and [BaseFolderRight]
with Local Exclude Filter rule: \movie\*.sc
Pair 2: [BaseFolderLeft]\movie and [BaseFolderRight]\movie
with Local Include Filter rule: \*\*.sc
Pair 1 will sync all items in [BaseFolderLeft] with [BaseFolderRight], except for any *.sc files in \movie\ , nor in any of \movie\ 's subfolders.
Pair 2 will sync all *.sc files in the subfolders of \movie\ in [BaseFolderLeft]\movie with [BaseFolderRight]\movie , but not the *.sc files in \movie\ itself.
The only assumption here is that the folder \movie\ does not contain a direct child subfolder also named "movie".
Note that local filter rules are set using the funnel-icon mid-between each of the left-right pairs.
- Posts: 2
- Joined: 14 Mar 2025
OK, thanks,
but that means if additional subfolders are created through whatever means, I have to create them manually in FreeFileSync. Phew.
but that means if additional subfolders are created through whatever means, I have to create them manually in FreeFileSync. Phew.
-
- Posts: 2946
- Joined: 22 Aug 2012
That is only true if such folder comprises file-types that should not be synced, whereas similar file-type items from its subfolders should be synced.