RealTimeSync Batch Question

Get help for specific problems
Posts: 2
Joined: 12 May 2014

ksdennis

Sorry but maybe someone here can help me set this up…

I have four computers that I travel with to do corporate events.

When I get a new presentation or video file I need to copy it to all four
computers.

What I was looking to do was to be able to copy the file (usually from a us
thumb drive) to any of the four computers and have it automatically synced
to the other three.

All four computers are networked to a router and I can see and share files
between them.



I know I need to use Realtimesync to do this but I believe the problem is
that because all four computers are being “watched” I end up with a loop
and the files get written and deleted and then rewritten and deleted … etc.



Here is the batch file I am trying to run:



_____________________________________________________________________________________________________


<?xml version="1.0" encoding="UTF-8"?>

<FreeFileSync XmlFormat="3" XmlType="BATCH">

    <MainConfig>

        <Comparison>

            <Variant>TimeAndSize</Variant>

            <Symlinks>Follow</Symlinks>

        </Comparison>

        <SyncConfig>

            <Variant>TwoWay</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>Permanent</DeletionPolicy>

            <VersioningFolder Style="Replace"/>

        </SyncConfig>

        <GlobalFilter>

            <Include>

                <Item>*</Item>

            </Include>

            <Exclude/>

            <TimeSpan Type="None">0</TimeSpan>

            <SizeMin Unit="None">0</SizeMin>

            <SizeMax Unit="None">0</SizeMax>

        </GlobalFilter>

        <FolderPairs>

            <Pair>

                <Left>D:\CurrentEvent</Left>

                <Right>\\Am-03\d\CurrentEvent</Right>

            </Pair>            <Pair>

                <Left>D:\CurrentEvent</Left>

                <Right>\\Am-04\d\CurrentEvent</Right>

            </Pair>            <Pair>

                <Left>D:\CurrentEvent</Left>

                <Right>\\Am-05\d\CurrentEvent</Right>

            </Pair>

        </FolderPairs>

        <OnCompletion>Close progress dialog</OnCompletion>

    </MainConfig>

    <BatchConfig>

        <HandleError>Ignore</HandleError>

        <RunMinimized>true</RunMinimized>

        <LogfileFolder Limit="-1"/>

    </BatchConfig>

</FreeFileSync>


____________________________________________________________________________________________________________



ANY HELP WOULD BE GREATLY APPRECIATED!



Kevin Dennis

Animatic Media
User avatar
Site Admin
Posts: 7281
Joined: 9 Dec 2007

Zenju

Can you describe your sync setup, i.e. where RTS is running and how the data should flow between PCs? Generally, there should not be a problem with multiple RTS instances running, at least they should not trigger another sync when not needed - except for [404, Invalid URL: https://sourceforge.net/p/freefilesync/feature-requests/154/] but that does not seem to be the case according to your config file.
Posts: 2
Joined: 12 May 2014

ksdennis

Can you describe your sync setup, i.e. where RTS is running and how the data should flow between PCs? Generally, there should not be a problem with multiple RTS instances running, at least they should not trigger another sync when not needed - except for [404, Invalid URL: https://sourceforge.net/p/freefilesync/feature-requests/154/] but that does not seem to be the case according to your config file.Zenju
I have RTS running on four laptops.
Computer names: AM-01, AM-03, AM-04 and AM-05 (there is no AM-02)

The above script runs on AM-01.
The above script is the same on all, except for the changes below.

D is always the local computer.

On AM-03 I run the same script except the line...
<Right>\\Am-03\d\CurrentEvent</Right>
is changed to...
<Right>\\Am-01\d\CurrentEvent</Right>

On AM-04 I run the same script except the line...
<Right>\\Am-04\d\CurrentEvent</Right>
is changed to...
<Right>\\Am-01\d\CurrentEvent</Right>

On AM-05 I run the same script except the line...
<Right>\\Am-05\d\CurrentEvent</Right>
is changed to...
<Right>\\Am-01\d\CurrentEvent</Right>


Hope that makes sense.

Again, Thanks for any help you can offer.

Kevin
User avatar
Site Admin
Posts: 7281
Joined: 9 Dec 2007

Zenju

Is one of the computers always running? In this case you could go with a single RTS instance on this hub pc.

Anyways, running RTS with an adapted ffs_batch job as you describe on each PC is fine. In general, running a FFS task that finds no files to sync does not result in an endless sync loop. If this is the case, then there must be some of your backup files that is constantly changing, e.g. if you inadvertently have included the log file directory in the backup or are using some application that is constantly working on one of the files.