Topic "Synchronize with unlogical(?) options"

Author Message
Guest

Guest


Hello Martin,

at first "thank you for WinSCP 4.7.5".

I wonder if this is a feature or a bug:

Synchronizing finds no difference if started with
[x] date
[x] size

Starting with
[ ] date
[x] size
finds a difference.

It looks like "NotDifferent := SameDate OR SameSize"
I would prefer "NotDifferent := SameDate AND SameSize"

Did I miss something?

Thanks again, Herbert
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Guest wrote:
It looks like "NotDifferent := SameDate OR SameSize"
I would prefer "NotDifferent := SameDate AND SameSize"

First of all, for synchronisation the question is not whether the files are the same, but whether one is "newer" than the other. If you select both criterias, the decision is like:
"Newer := (Timestamp > OtherTimestamp) Or ((Timestamp = OtherTimestamp) And (Size <> OtherSize)"
That's IMHO the only sensible approach.

I have updated the documentation to make it clear.
_________________
Martin Prikryl
Guest




prikryl wrote:

First of all, for synchronisation the question is not whether the files are the same, but whether one is "newer" than the other.


Thank you for the explanation. Just to inform you of one possible use of your program:
I use WinSCP for keeping a copy of my "Data Disk" on another PC. (I always sync local -> remote).

When I played around with the options (size and time), I found that on my remote volume I had a file with the same name and the same time, but with a different time. I don't know how this happened, but it did.

So I had a useless backup. And I was not aware of this, since I misunderstood the meaning of sync options.

Anyway, my workaround is to synchronize twice, with different options.

best regards, Herbert
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License