Checksum feature for "Sync Folders"

Features wanted...
Post Reply
dash
Posts: 16
Joined: 01 Mar 2015 11:44

Checksum feature for "Sync Folders"

Post by dash »

Hallo,

i use "Sync Folders" feature to backup data to external HDD and i recently run into a problem with it.

After syncing Data to a backup drive i didn't unmount the device correctly, which resulted in corrupt copied files.
(I found the discrepancy much later, when i tried opening some of the files on the backup HDD.)
Thing is, those corrupt files reported correct date and size, so XYplorer didn't see any need to overwrite those, when syncing. I then did hash-check and sure enough, it was different.

So It would be great if "Sync Folders" feature wound also get "overwrite if different checksum" option in addition to already existing "overwrite if different size or date".

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

Re: Checksum feature for "Sync Folders"

Post by admin »

Makes sense. :tup:

Not sure about the best caption:
"overwrite if different content"
"overwrite if different contents"
"overwrite if different hash"
"overwrite if different hashes"
"overwrite if different checksum"

Help! :cup:

And then the question arises which hash to use by default. And make it optional/tweakable?
These are in the store:
MD5
SHA1
SHA256
SHA512
CRC32

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Checksum feature for "Sync Folders"

Post by Horst »

I would name it "Overwrite if different contents".
Using MD5 is unsecure, may be a tweak with a default of SH256
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

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

Re: Checksum feature for "Sync Folders"

Post by admin »

:tup:

dash
Posts: 16
Joined: 01 Mar 2015 11:44

Re: Checksum feature for "Sync Folders"

Post by dash »

Well If I had to choose, i would go with either "overwrite if different checksum" or "overwrite if different hashes",
since this directly implies that files are compared by calculating a checksum, but I'm also OK with "Overwrite if different contents" :mrgreen:

MD5 is faster than SHA256 but cryptographically broken, so i would also go with SHA256 as a default.

also many thanks for listening, admin :tup:

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

Re: Checksum feature for "Sync Folders"

Post by admin »

Since there is also the ByteToByte option for the tweak, "Overwrite if different contents" is okay.

BTW, it's already finished. Check out the latest beta v22.00.0004.

dash
Posts: 16
Joined: 01 Mar 2015 11:44

Re: Checksum feature for "Sync Folders"

Post by dash »

well that was fast, thanks :biggrin:

prino
Posts: 337
Joined: 18 Mar 2012 21:14
Location: Vilnius, Lithuania
Contact:

Re: Checksum feature for "Sync Folders"

Post by prino »

dash wrote: 02 Jul 2021 17:10MD5 is faster than SHA256 but cryptographically broken, so i would also go with SHA256 as a default.
True, but I hardly think there will ever any problems when used while doing personal backups. Hell, even the simplistic CRC32 will probably do in this case.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
At last, a tiny bit of programming here... :mrgreen:

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Checksum feature for "Sync Folders"

Post by Horst »

prino wrote: 05 Jul 2021 14:53
dash wrote: 02 Jul 2021 17:10MD5 is faster than SHA256 but cryptographically broken, so i would also go with SHA256 as a default.
True, but I hardly think there will ever any problems when used while doing personal backups. Hell, even the simplistic CRC32 will probably do in this case.
File managers are not only used for unimportand personal purposes.
So it matters what security features are used.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

Post Reply