Different include/exclude filters according to pair ?.

Get help for specific problems
Posts: 5
Joined: 27 Oct 2012

adriensf

Hello,

is it possible to have the include/exclude filters to be pair-specific ?

Here is what i'm trying to do. Having two pairs:

SourceA ---> TargetA Include everything (*)
SourceB ---> TargetB I only need two files

The thing is that SourceB has many files and subfolders. I would like to literally specify which two files i need, rather then literally excluding all the others, because the excluded ones could change and I don't want to have to modify the exclusion list all the time.


Could you please help me with that ?
Posts: 23
Joined: 23 Feb 2009

micha--

Filters per FolderPair

I think you need something like this: Filter (<Include>, <Exclude>) per every <Pair>:
<?xml version="1.0" encoding="UTF-8"?>
<FreeFileSync XmlFormat="4" XmlType="GUI">
    <MainConfig>
        <Comparison>
            <Variant>TimeAndSize</Variant>
            <TimeShift>0</TimeShift>
            <Symlinks>Exclude</Symlinks>
        </Comparison>
        <SyncConfig>
            <Variant>Mirror</Variant>
            <CustomDirections>
                <LeftOnly>right</LeftOnly>
                <RightOnly>left</RightOnly>
                <LeftNewer>right</LeftNewer>
                <RightNewer>left</RightNewer>
                <Different>none</Different>
                <Conflict>none</Conflict>
            </CustomDirections>
            <DetectMovedFiles>false</DetectMovedFiles>
            <DeletionPolicy>RecycleBin</DeletionPolicy>
            <VersioningFolder Style="Replace"/>
        </SyncConfig>
        <GlobalFilter>
            <Include>
                <Item>*</Item>
            </Include>
            <TimeSpan Type="None">0</TimeSpan>
            <SizeMin Unit="None">0</SizeMin>
            <SizeMax Unit="None">0</SizeMax>
        </GlobalFilter>
        <FolderPairs>
            <Pair>
Here you need Filter (<Include>, <Exclude>):
                <Left>soure1</Left>
                <Right>destination1</Right>
                <Include>
                    <Item>*</Item>
                </Include>

                <Left>soure2</Left>
                <Right>destination2</Right>
                <Include>
                    <Item>file1</Item>
                    <Item>file2</Item>
                </Include>
            </Pair>
        </FolderPairs>
        <OnCompletion/>
    </MainConfig>
    <GuiConfig>
        <HandleError>Popup</HandleError>
        <MiddleGridView>Action</MiddleGridView>
    </GuiConfig>
</FreeFileSync>
How can such a feature fit in the GUI?
Posts: 85
Joined: 28 Aug 2012

blues12

I have a very similar situation, wanting to include a small subset only, without having to adjust the ever-changing bulk of excludes.

It made me wonder if filters could be reversed, excluding first, THEN including again. In other words, the includes would be exceptions to the excludes, not the other way round as it is now. If nothing is stated, an *asterisk = inlude all would be assumed by default, without explicitly specifying it in an include filter.

Here's the discussion:
viewtopic.php?t=1675
Maybe it sheds light on the issue.
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

To quickly answer the OP's question:

> is it possible to have the include/exclude filters to be pair-specific ?

Yes, click the small filter button shown in the middle of a folder pair, just between left and right folders on the main dialog.