[lug] replacing dupes with links

Daniel Weflen danweflen at gmail.com
Fri Mar 16 19:50:01 MDT 2018


Would you prefer hardlinks, symlinks, or reflinks? Also, what file system
are you using?

On Wed, Mar 14, 2018 at 10:49 AM, Kevin Fenzi <kevin at scrye.com> wrote:

> On 03/12/2018 02:22 PM, mad.scientist.at.large at tutanota.com wrote:
> > For organizational purposes i'm trying to deal with a partition that has
> many copies of each file in various subdirectories.  I'd like a way to
> replace all but one instance of a given file with a link.  Is there an easy
> way to do this?  I'm thinking i can use fdupes and some scripting.  Any
> better ideas or already written shellscripts or programs?
> >
> >  The partition has several hundred gig of files (several hundered
> thousand files including dupes) nicely sorted and grouped but consuming
> excess space.  Run time isn't much of an issue as this machine can run
> unattended overnight.  I could use fslint with a lot of user involvement
> but obviously that would be tedious.
> >
>
> If you don't mind hard links you could use the hardlink program.
>
> https://pagure.io/hardlink
>
> "hardlink traverses one or more directories searching for duplicate
> files.  When it finds duplicate files, it uses  one  of  them  as the
> master.  It then removes all other duplicates and places a hardlink for
> each one pointing to the master file.  This allows for conservation of
> disk space where  multiple  directories  on  a single filesystem contain
> many duplicate files."
>
> kevin
>
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20180316/b95a5af0/attachment.html>


More information about the LUG mailing list