You are here

Sync equalise problem?

8 posts / 0 new
Last post
LurkMastR
Offline
Last seen: 16 years 4 months ago
Joined: 2007-11-28 21:21
Sync equalise problem?

I'm having trouble with the Sync function when trying to "equalise". As I understand it, this should cause the newest versions of files to overwrite any older versions regardless of whether they are in the source or destination.

Example: I created a folder on the C: drive called C:\Sync and another one on my flash drive E:\Sync. I create a simple text file called C:\Sync\test.txt which contains "initial revision". I run Toucan (1.2.0) and select Sync with the "equalise" and "retain attributes" options selected. The source is set to C:\Sync and the destination is set to E:\Sync. This worked as I expected: the text file was copied from C:\Sync\test.txt to E:\Sync\test.txt.

Now I edit/change the file ON THE FLASH DRIVE (E:\Sync\test.txt) and add a line which says "revision 1". Now do the Sync again with the same settings as previously. For me, nothing happens. I was expecting the newer/updated file in E:\Sync\test.txt to be copied to (overwrite) the C:\Sync\test.txt, but this didn't happen.

What am I missing? Is Toucan broken or is my understanding of how is should work broken? Thanks.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 7 months ago
Developer
Joined: 2005-12-10 15:22
Sorry,

I've been pretty busy and this post looked like it needed some time to read through! Basically, yes, that looks like a bug I'll look into it a bit more and get back ASAP.

LurkMastR
Offline
Last seen: 16 years 4 months ago
Joined: 2007-11-28 21:21
Thanks for responding. I

Thanks for responding. I certainly understand about being busy. I just wanted to make sure that I haven't missing something when I tried to search the forums on this topic. Keep us posted when you get a chance to look into this problem.

Thanks again.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 7 months ago
Developer
Joined: 2005-12-10 15:22
Hmm,

I had a look at this an I can't reproduce it, does the file get copied if you use the update function with the folder on the USB drive as the source and the hard drive folder as the destination?

LurkMastR
Offline
Last seen: 16 years 4 months ago
Joined: 2007-11-28 21:21
I did a little more testing

I did a little more testing and here's what I found.

setup: C:\sync\test.txt
E:\sync\test.txt (flash drive version)

Edit the file on C: or E: and then run Sync with C:\sync as source and E:\sync as destination.

If I do NOT check the "retain attributes" option, it seems to work as expected. The newer version of the file would overwrite the older version regardless of whether the newest version was on the source or the destination.

However, if I do check the "retain attributes" option, it would NOT overwrite the source file with a newer destination file, but it would overwrite the destination file with a newer source file. So in other words, it fails for me when the destination is newer than the source AND "retain attributes" is selected.

My problem can be worked around by keeping "retain attributes" off, but it does seem to be a bug. Try that and see if you can reproduce it.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 7 months ago
Developer
Joined: 2005-12-10 15:22
Ah,

OK, I'll have a look at that bit of the code and see what is going on.

esullender
Offline
Last seen: 16 years 4 months ago
Joined: 2007-12-19 01:29
able to reproduce

I am able to reproduce this issue as well. Equalize works as expected when "retain attributes" is unchecked, when checked the source will overwrite the destination even if the destination file is more recent.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 7 months ago
Developer
Joined: 2005-12-10 15:22
This

should be fixed in the latest beta, available in the Beta Testing forum.

Log in or register to post comments