Synchronize with unlogical(?) options

Advertisement

Guest
Guest

Synchronize with unlogical(?) options

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Synchronize with unlogical(?) options

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.

Reply with quote

Guest

Re: Synchronize with unlogical(?) options

martin 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

Reply with quote

Advertisement

You can post new topics in this forum