On 03/14/2017 04:52 AM, The Wanderer wrote:
On 2017-03-13 at 23:36, David Christensen wrote:
Is anyone aware of a utility that can walk a file system and replace
identical files with hard links?
Try rdfind. It's in Debian; I don't use it myself, largely because the
(accepted upstream years ago) feature request for a "-minsize" option
(to replace or extend the "-ignoreempty" option) which I need for my use
case has not apparently been implemented yet - but finding duplicate
files is exactly what it's meant for, and one of its available "actions"
is to replace the duplicate files with hardlinks.
rdfind looks like just what I wanted. Thanks for the tip. :-)
David