make-hard-links: Change duplicated files into hard-links.

[ program, system ] [ Propose Tags ]

This program is capable of finding duplicated files and turning one of them into a hard link to the other, effectively reducing the space usage (as the data will not be duplicated in the disk). It works only on POSIXish systems, and was tested in GNU/Linux only.

WARNING: As the duplicated files will point to each other, if one of them is modified then the other will as well! You should use make-hard-links only if the files won't be modified, only renamed, removed, or created.

The author had a Maildir with lots of duplicated files, and in his case make-hard-links was capable of reducing the space usage in 29% (as measured by "du -hcs" and "du -hcs -l"). As a final note, this program currently has a high memory usage as it has to maintain information about all the files that are possibly duplicates in memory at once (the author measured 1.7 GiB of memory for about 300.000 files).


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.1, 0.2
Dependencies base (>=4), bytestring, containers, directory, filepath, unix [details]
License LicenseRef-GPL
Copyright (c) 2009 Felipe A. Lessa
Author Felipe Almeida Lessa
Category System
Uploaded by FelipeLessa at 2009-03-14T10:47:20Z
Reverse Dependencies 1 direct, 0 indirect [details]
Executables make-hard-links
Downloads 1842 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2015-11-13 [all 8 reports]