Sync on_collision overwrite if different contents not honored

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
hermhart
Posts: 246
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?
Windows 11 Pro; 100% scaling

admin
Site Admin
Posts: 66543
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 246
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.
Windows 11 Pro; 100% scaling

admin
Site Admin
Posts: 66543
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 246
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?
Windows 11 Pro; 100% scaling

admin
Site Admin
Posts: 66543
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 246
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.
Windows 11 Pro; 100% scaling

admin
Site Admin
Posts: 66543
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 246
Joined: 13 Jan 2015 18:41

Re: Sync on_collision overwrite if different contents not honored

Post by hermhart »

It has been sent.
Windows 11 Pro; 100% scaling

admin
Site Admin
Posts: 66543
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 246
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:
Windows 11 Pro; 100% scaling

Post Reply