jvirkki / dupd

CLI utility to find duplicate files
http://www.virkki.com/dupd
GNU General Public License v3.0
114 stars 16 forks source link

Feature request : hardlink duplicates #2

Closed drasill closed 9 years ago

drasill commented 9 years ago

Hi,

I intend to use dupd to create hardlinks of duplicate files.

Is this something you could implement ? I guess it could be like the "rmsh" option.

drasill commented 9 years ago

Ok, I just saw you implemented a --link option to the rmsh, to generate a script which removes and symlinks the file.

What do you think of having a --hardlink option ? or a --link=hard ?

Or, like some other dedupers do, use a hardlink when on the same filesystem, and a symlink otherwise ?

jvirkki commented 9 years ago

Adding a --hardlink option is easy enough.

However, it won't be an entirely satisfactory solution because dupd doesn't differentiate hard links to a single file from true duplicates so such files will continue to report as duplicates during future scans.

jvirkki commented 9 years ago

Added a --hardlink option (with the above caveat).

drasill commented 9 years ago

Thank you !