News for hackers. Stuff that matters.
Re:Duperemove – Tools for deduping file systems by Alifatisk on Thursday August 08, 2024 @04:16PM (#41195722)
I have recently stumbled upon a challenge with deduping lots of media. I'm talking about both images and pictures. They are named in different ways, comes in different image and video formats, and are spread out throughout a whole directory and deeply nested. In total, it's about 170 GB of content.

My approach have been this: - Flatten out all the deeply nested folders - Categorize the content into folders with the year as name - Run deduplication and set the threshold to 100% match (I really don't want to loose any content) - Sync to Google photos

Have anyone else faced similar challenges?

Re:Duperemove – Tools for deduping file systems by 0cf8612b2e1e on Thursday August 08, 2024 @05:16PM (#41196379)
If you are only willing to drop exact duplicates, why not just take a file hash of everything as your starting point? Delete all but one of the collisions.
Re:Duperemove – Tools for deduping file systems by Alifatisk on Thursday August 08, 2024 @05:52PM (#41196724)
DupeGuru has been pretty effective solution for this. I don’t know if creating a hash for every file and then checking for collision is any better way? Sounds like it requires more labor.
Re:Duperemove – Tools for deduping file systems by 0cf8612b2e1e on Thursday August 08, 2024 @06:55PM (#41197266)

  find . -type f -exec sha256sum {} \; | sort
Gets you half way there.
Re:Duperemove – Tools for deduping file systems by Alifatisk on Thursday August 08, 2024 @08:09PM (#41197684)
Clever, and I appreciate your suggestion! But doesn’t look like it’s worth replacing DupeGuru for that approach.
Re:Duperemove – Tools for deduping file systems by corndoge on Thursday August 08, 2024 @05:34PM (#41196558)
I think lots of people have faced this challenge. There are several tools that will find and allow you to purge exact duplicates, such as dupeguru.
Re:Duperemove – Tools for deduping file systems by natmaka on Thursday August 08, 2024 @09:27PM (#41198042)
I may have misunderstood but why aren't standard tools (such as rdfind or fdupes) inadequate?
Re:Duperemove – Tools for deduping file systems by Alifatisk on Friday August 09, 2024 @08:16AM (#41201084)
It's not about them being insufficient, I just didn't know about them. Thank you!
Re:Duperemove – Tools for deduping file systems by mchan on Friday August 09, 2024 @06:50AM (#41200580)
You might be interested in this app: https://github.com/qarmin/czkawka