markfasheh / duperemove

Tools for deduping file systems
GNU General Public License v2.0
805 stars 80 forks source link

Hardlink Support #302

Closed eatnumber1 closed 1 year ago

eatnumber1 commented 1 year ago

Is it possible to add support for duperemove to generate hardlinks when entire files are duplicates?

JackSlateur commented 1 year ago

Hello,

This is not in the roadmap, and won't be duperemove is eager to preserve files semantics and be completely transparent to the application layer

So just because at some time, two files are identitcal, it does not mean they always will be Also, there are security concerns (race condition between the checks and the hard linking, for instance)

I believe there are some tools that implement that kind of feature (at least https://github.com/eminence/deduprs)

Best regards,