this post was submitted on 23 Jun 2024
81 points (100.0% liked)
Linux
48180 readers
1353 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I don't actually know but I bet that's relatively costly so I would at least try to be mindful of efficiency, e.g
find
to start only with large files, e.g > 1Gb (depends on your own threshold)then after trying a couple of times
and possibly heuristics e.g
Why do I suggest all this rather than a tool? Because I be a lot of decisions have to be manually made.
fclones https://github.com/pkolaczk/fclones looks great but I didn't use it so can't vouch for it.
I was using Radarr/Sonarr to download files via qBittorrent and then hardlink them to an organized directory for Jellyfin, but I set up my container volume mappings incorrectly and it was only copying the files over, not hardlinking them. When I realized this, I fixed the volume mapping and ended up using fclones to deduplicate the files and it was amazing. It did exactly what I needed it to and it did it fast. Highly recommend fclones.
I've used it on Windows as well, but I've had much more trouble there since I like to write the output to a file first to double check it before
cat
ting the information back into fclones to actually deduplicate the files it found. I think running everything as admin works but I don't remember.FWIW just did a quick test with
rmlint
and I would definitely not trust an automated tool to remove on my filesystem, as a user. If it's for a proper data filesystem, basically a database, sure, but otherwise there are plenty of legitimate duplication, e.g./node_modules
, so the risk of breaking things is relatively high. IMHO it's better to learn why there are duplicates on case by case basis but again I don't know your specific use case so maybe it'd fit.PS: I imagine it'd be good for a content library, e.g ebooks, ROMs, movies, etc.
if you use
rmlint
as others suggested here is how to check for path of dupesjq -c '.[] | select(.type == "duplicate_file").path' rmlint.json