Exclude subfolders in included folders

Get help for specific problems
Posts: 2
Joined: 10 Sep 2023

taravasya

Hello! I use FFS to making backup of folders from several discs to one single disc with related folders.
Here is my project:
<?xml version="1.0" encoding="utf-8"?>
<FreeFileSync XmlType="GUI" XmlFormat="19">
    <Notes/>
    <Compare>
        <Variant>TimeAndSize</Variant>
        <Symlinks>Exclude</Symlinks>
        <IgnoreTimeShift/>
    </Compare>
    <Synchronize>
        <Variant>Mirror</Variant>
        <DetectMovedFiles>false</DetectMovedFiles>
        <DeletionPolicy>RecycleBin</DeletionPolicy>
        <VersioningFolder Style="Replace"/>
    </Synchronize>
    <Filter>
        <Include>
            <Item>*</Item>
        </Include>
        <Exclude>
            <Item>\System Volume Information\</Item>
            <Item>\$Recycle.Bin\</Item>
            <Item>\RECYCLE?\</Item>
            <Item>\Recovery\</Item>
            <Item>*\thumbs.db</Item>
        </Exclude>
        <SizeMin Unit="None">0</SizeMin>
        <SizeMax Unit="None">0</SizeMax>
        <TimeSpan Type="None">0</TimeSpan>
    </Filter>
    <FolderPairs>
        <Pair>
            <Left>E:\</Left>
            <Right>Z:\E</Right>
            <Filter>
                <Include>
                    <Item>\ARHIV\</Item>
                    <Item>\Footage\</Item>
                    <Item>\Soft\</Item>
                    <Item>\клипард\</Item>
                </Include>
                <Exclude/>
                <SizeMin Unit="None">0</SizeMin>
                <SizeMax Unit="None">0</SizeMax>
                <TimeSpan Type="None">0</TimeSpan>
            </Filter>
        </Pair>
        <Pair>
            <Left>D:\</Left>
            <Right>Z:\D</Right>
            <Filter>
                <Include>
                    <Item>\Documents\</Item>
                    <Item>\ForWork\</Item>
                </Include>
                <Exclude>
                    <Item>\Documents\PSoft\Telegram\tdata\user_data\</Item>
                </Exclude>
                <SizeMin Unit="None">0</SizeMin>
                <SizeMax Unit="None">0</SizeMax>
                <TimeSpan Type="None">0</TimeSpan>
            </Filter>
        </Pair>
        <Pair>
            <Left>A:\</Left>
            <Right>Z:\A</Right>
            <Filter>
                <Include>
                    <Item>\Профы\</Item>
                    <Item>\Order\Print\</Item>
                </Include>
                <Exclude/>
                <SizeMin Unit="None">0</SizeMin>
                <SizeMax Unit="None">0</SizeMax>
                <TimeSpan Type="None">0</TimeSpan>
            </Filter>
        </Pair>
    </FolderPairs>
    <Errors Ignore="true" Retry="0" Delay="5"/>
    <PostSyncCommand Condition="Completion"/>
    <LogFolder>D:\Documents\PSoft\FreeFileSyncPortable\Logs\A</LogFolder>
    <EmailNotification Condition="Always"/>
    <GridViewType>Action</GridViewType>
</FreeFileSync>
My problem is part:
            <Left>D:\</Left>
            <Right>Z:\D</Right>
            <Filter>
                <Include>
                    <Item>\Documents\</Item>
                    <Item>\ForWork\</Item>
                </Include>
                <Exclude>
                    <Item>\Documents\PSoft\Telegram\tdata\user_data\</Item>
                </Exclude>
Then I make compare, folder and subfolders of
D:\Documents\PSoft\Telegram\tdata\user_data\
is steel remain for sync from left to right.
I expect what if I use exclude rule
                <Exclude>
                    <Item>\Documents\PSoft\Telegram\tdata\user_data\</Item>
                </Exclude>
, folder:
D:\Documents\PSoft\Telegram\tdata\user_data\
must be ignored... But no.
What I have to do for make excluded:
D:\Documents\PSoft\Telegram\tdata\user_data\
?
Thanks!
Posts: 2
Joined: 10 Sep 2023

taravasya

Sorry! All work as expected. I was have two Telegram folders:
D:\Documents\PSoft\Telegram\tdata\user_data\
and
D:\Documents\PSoft\TelegramWork\tdata\user_data\
and I didn't notice this slight difference.
This topic just must be deleted. Sorry again. And thanks for the great tool!