Page 1 of 1
Checksum feature for "Sync Folders"
Posted: 27 Jun 2021 12:53
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".
Re: Checksum feature for "Sync Folders"
Posted: 02 Jul 2021 10:37
by admin
Makes sense.
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!
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
Re: Checksum feature for "Sync Folders"
Posted: 02 Jul 2021 12:01
by Horst
I would name it "Overwrite if different contents".
Using MD5 is unsecure, may be a tweak with a default of SH256
Re: Checksum feature for "Sync Folders"
Posted: 02 Jul 2021 12:16
by admin
Re: Checksum feature for "Sync Folders"
Posted: 02 Jul 2021 17:10
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"
MD5 is faster than SHA256 but cryptographically broken, so i would also go with SHA256 as a default.
also many thanks for listening, admin

Re: Checksum feature for "Sync Folders"
Posted: 02 Jul 2021 17:46
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.
Re: Checksum feature for "Sync Folders"
Posted: 03 Jul 2021 13:36
by dash
well that was fast, thanks

Re: Checksum feature for "Sync Folders"
Posted: 05 Jul 2021 14:53
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.
Re: Checksum feature for "Sync Folders"
Posted: 05 Jul 2021 17:08
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.