Sync on_collision overwrite if different contents not honored

Things you’d like to miss in the future...
Post Reply
hermhart
Posts: 219
Joined: 13 Jan 2015 18:41

Sync on_collision overwrite if different contents not honored

Post by hermhart »

I have a sync script that I use that syncs all of my current configuration for XYplorer, of which, up until I believe two maintenance releases ago, it seems to of stopped honoring the on_collision (4 = Overwrite if different contents) argument. I use it on two different computers and on both it now re-syncs all of the files, not just the changed ones. Has something changed?

admin
Site Admin
Posts: 62257
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Sync on_collision overwrite if different contents not honored

Post by admin »

Works fine here. I use this test script to copy a text file from here to the other pane. It's skipped when same, copied when different:

Code: Select all

sync <path 1>, <path 2>, 1, 4, 0, "k";
Check your value at INI key SyncContentCheck. By default it should be 4 (= SHA-256).

hermhart
Posts: 219
Joined: 13 Jan 2015 18:41

Re: Sync on_collision overwrite if different contents not honored

Post by hermhart »

I checked that INI key per your suggestion and it is already set as you show.

The only thing I have changed recently in my script was:
old: sync "<xypath>", "$XYBackup", 1, 4, 1, n;
new: sync "<xypath>", "$XYBackup", 1, 4, 1, bn;

As I believe you recently added the option for the 'b' argument for background processing.

admin
Site Admin
Posts: 62257
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Sync on_collision overwrite if different contents not honored

Post by admin »

Works just as well with the "b" switch. :|

hermhart
Posts: 219
Joined: 13 Jan 2015 18:41

Re: Sync on_collision overwrite if different contents not honored

Post by hermhart »

Sorry to ask about this again, but I am still having this issue and am curious if there could be any other setting perhaps under File Operations that I might be missing in order to only overwrite on_collision 4 = Overwrite if different contents?

admin
Site Admin
Posts: 62257
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Sync on_collision overwrite if different contents not honored

Post by admin »

You consistently have this issue with every file that is synced?

hermhart
Posts: 219
Joined: 13 Jan 2015 18:41

Re: Sync on_collision overwrite if different contents not honored

Post by hermhart »

Yes, I do have this with every file that is synced. And as I stated in my very first post on this subject, I have this on two separate computers and they both began to fail at the same time after an update. The syncing works fine, it's just that it should be skipping over a whole bunch of files that have not been modified and should only be syncing files with different contents.

admin
Site Admin
Posts: 62257
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Sync on_collision overwrite if different contents not honored

Post by admin »

Could you mail your XYplorer.ini file to support?

hermhart
Posts: 219
Joined: 13 Jan 2015 18:41

Re: Sync on_collision overwrite if different contents not honored

Post by hermhart »

It has been sent.

admin
Site Admin
Posts: 62257
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Sync on_collision overwrite if different contents not honored

Post by admin »

Thanks, that helped. Got it. Was a bug indeed! :bug: Fixed in next beta. :beer:

hermhart
Posts: 219
Joined: 13 Jan 2015 18:41

Re: Sync on_collision overwrite if different contents not honored

Post by hermhart »

Thank you so much! You rock! :party:

Post Reply