http://qs321.pair.com?node_id=703472


in reply to Replace duplicate files with hardlinks

This is a common problem and your solution is not dissimilar from others. There is a nice section on Wikikpedia about the various duplicate finders and linking tools: fdupes.

As the author of one of the tools (fdf) I have a vested interest and I can say that it's easy to make something fast, it's harder to make it fast and reliable. I've also had a conversation with the author of fslint - there are more than a few land-mines out there! For example lots of operating systems have primitive file-systems that don't do hard-links...

Anyhow it's nice to see another version and it's always fun to try benchmarking them!


--
ajt

Replies are listed 'Best First'.
Re^2: Replace duplicate files with hardlinks
by Anonymous Monk on Aug 10, 2008 at 21:28 UTC
    Ajt: Thanks a lot for your comments! As as I said in my previous post, the main purpose of the script was to test some recently acquired skills; I wasn't aiming at trying to compete with a full featured program. I was aware that there were many other tools for this job already, but I just wanted to give it a go for the fun of it.

    Please forgive me if it sounded like it was a new solution to a not yet solved problem. I am the first to acknowledge that, in its current state, this little script is far from being robust and safe to use by anyone in any platform.

      Sorry, I am the Anonymous Monk here. Still figuring things out...