You are not logged in.

#1 2014-09-18 16:30:12

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

[Solved] Simple directory dedupe

Say I copy directory foo to bar, then make some changes to the contents of bar (modify existing files, create new ones). Is there a simple way to dedupe bar against foo, eg. remove everything but the new/modified files?

Last edited by alphaniner (2014-09-18 18:47:41)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#2 2014-09-18 17:54:51

hydn
Member
From: St. Kitts
Registered: 2012-09-23
Posts: 105
Website

Re: [Solved] Simple directory dedupe

rsync with --delete

Something like?...

rsync -avvru --delete /bar/ /foo

man rsync as I'm pretty sure its possible.

Last edited by hydn (2014-09-18 17:55:18)


Linux Performance Blog: https://linuxblog.io/

Offline

#3 2014-09-18 18:09:45

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [Solved] Simple directory dedupe

...whatever automatic tool you use, make sure you make a backup copy of both directories first!

Offline

#4 2014-09-18 18:22:15

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [Solved] Simple directory dedupe

There is fdupes, rmlint, rmdupe, ddupes, finddupes, ...


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2014-09-18 18:45:31

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved] Simple directory dedupe

progandy wrote:

There is fdupes, rmlint, rmdupe, ddupes, finddupes, ...

Is that all? roll

Thanks, I should have looked closer at my google results. I swear when I've looked into this in the past I only found stuff like lessfs.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB