Let me show you my current filter setup :
Include Filter:
*
General knowledge\*
General knowledge\*.mkv
Exclude Filter:
*.iso
*.zip
*.mkv
I googled but I couldn't find any solution, is there anyway I can do this ?
Include Filter:
*
General knowledge\*
General knowledge\*.mkv
Exclude Filter:
*.iso
*.zip
*.mkv
you mean you want to exclude all mkv-files from your sync, except for the mkv files in the folder "General knowledge".I want to "force" the inclusion of mkv files that are located in the folder "General knowledge"
I wasn't so sure of this myself, so I didn't mention it. I was pretty sure an item has to match all inclusion filters to be considered, but that is incorrect. An item can match any inclusion line to be included, barring exclusionsThe first rule of your Include Filter is *.
Therefore everything is included, except for items that are explicitly Excluded per the Exclude Filter rules. The next two rules of your Include Filter are therefore obsolete. Plerry, 12 Jun 2024, 17:07
INCLUDE:
*
EXCLUDE:
*.mrimg
*.mkv
*.iso
!General knowledge\*.mkv
> I have a bunch of folders to sync and they all have huge mkv files.Files and folders 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.
Include : "*" - well that's the default ...I wasn't so sure of this myself, so I didn't mention it. I was pretty sure an item has to match all inclusion filters to be considered, but that is incorrect. An item can match any inclusion line to be included, barring exclusions xCSxXenon, 12 Jun 2024, 18:03The first rule of your Include Filter is *.
Therefore everything is included, except for items that are explicitly Excluded per the Exclude Filter rules. The next two rules of your Include Filter are therefore obsolete. Plerry, 12 Jun 2024, 17:07
YES !!! you were right !!, I'm sorry I didn't pay more attention to this, I was on the road ...The first rule of your Include Filter is *.
Therefore everything is included, except for items that are explicitly Excluded per the Exclude Filter rules. The next two rules of your Include Filter are therefore obsolete.
And, as xCSxXenon wrote, your Exclude rule *.mkv should be removed, otherwise all mkv-files will be excluded.
But, given your posting, I suspect that by writingyou mean you want to exclude all mkv-files from your sync, except for the mkv files in the folder "General knowledge".I want to "force" the inclusion of mkv files that are located in the folder "General knowledge"
If so, that is a case as described in "Example: Complex filter rules with exceptions" in the Manual page on Filtering
You then need to use two folders pairs and local filter settings:
C:\Source <—> D:\Target local exclude filter: \General knowledge\ and *.mkv
C:\Source <—> D:\Target local include filter: \General knowledge\ (instead of *)
OR two folder pairs:
C:\Source <—> D:\Target local exclude filter: \General knowledge\ and *.mkv
C:\Source\General knowledge\ <—> D:\Target\General knowledge\ (empty local exclude filter)
OR two folder pairs:
C:\Source <—> D:\Target local exclude filter: *.mkv
C:\Source\General knowledge\ <—> D:\Target\General knowledge\ local include filter: *.mkv
Use the icons in between each left-right pair to define local Compare, Sync and/or Filter settings. Plerry, 12 Jun 2024, 17:07