hardlink is a tool which detects multiple copies of the same file and replaces them with hardlinks.