Backup Question, Preserving Hard Links

markw at mohawksoft.com markw at mohawksoft.com
Tue May 23 12:43:17 EDT 2006


> Message: 4
> Date: Tue, 23 May 2006 11:25:35 -0400
> From: Kent Borg <kentborg at borg.org>
> Subject: Re: Backup Question, Preserving Hard Links
> To: discuss at blu.org
> Message-ID: <20060523112535.U5934 at borg.org>
> Content-Type: text/plain; charset=us-ascii
>
> On Mon, May 22, 2006 at 05:43:02PM -0400, Kent Borg wrote:
>> I am looking for a way to:
>> [...]
>
> OK, I don't see a bunch of answers to my "what to use when rsync can't
> handle it"-question.
>
> Let me try a different question...
>
> Let's say I have two disk volumes (or directory trees) that exactly
> match in contents--except one has extra files that aren't present on
> the other.  How can I efficiently remove the extra files so the two
> copies really do match?
>
>
If you can be sure that 100% of the files on one volume are present on
another volume, you could do this:

find /volume1 > x
find /volume2 > y
cat x y | sort | uniq -u > z

z will contain all the file not present in both, XOR.




More information about the Discuss mailing list