From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JTJtQ-0006DQ-EC for garchives@archives.gentoo.org; Sun, 24 Feb 2008 16:40:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B828AE04D5; Sun, 24 Feb 2008 16:39:58 +0000 (UTC) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by pigeon.gentoo.org (Postfix) with ESMTP id 230E8E04D5 for ; Sun, 24 Feb 2008 16:39:58 +0000 (UTC) Received: by nf-out-0910.google.com with SMTP id f5so596309nfh.26 for ; Sun, 24 Feb 2008 08:39:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=sePQecn0qs7UWMA+KvXKUlYl8Q8Z+vnr5cn3PovgS9g=; b=PNNIRg+t6z1FKs90sp0RXzAT98QLDELurQ2Pndc4Vopam8zZ5S4y+7ScvQApJu3/JouurNRiXoEHwj7mC+rQRyF4Zlhsf396D3+sIJEAEe7fe9++1WnSvkjmQrDLX38F5noQ5+W/pdr/cZdkNVN7i9nysJ2eU4YftGefPlQff+g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=vMdyYXbHt+Ker9z8q94vayuWsObGRi53STkytvDrfwYuEq2e7AxrrL65mRwBuhvWernnZXzkzfX+BoucKxl/M9ORvRwzpaMlmQpYpF2vqmWD+wJ8PRnCocbB6uczMNc2foc8FZZ0EbqnL3+Hu2W80/HVR7LlK+kbMjUNx+zr7Zw= Received: by 10.142.115.10 with SMTP id n10mr1296866wfc.8.1203871196176; Sun, 24 Feb 2008 08:39:56 -0800 (PST) Received: by 10.143.28.14 with HTTP; Sun, 24 Feb 2008 08:39:56 -0800 (PST) Message-ID: <1d475af30802240839h2299da5bsfbe39aea324d8ce7@mail.gmail.com> Date: Mon, 25 Feb 2008 00:39:56 +0800 From: cabbage Sender: zhangjianxuan@gmail.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] md5sum for directories? In-Reply-To: <20080224142925.4afef939@loonquawl.digimed.co.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3349_13911536.1203871196178" References: <7B4F9B31-ABDE-47C7-B841-2D3902E7B3DD@stellar.eclipse.co.uk> <20080224142925.4afef939@loonquawl.digimed.co.uk> X-Google-Sender-Auth: f5e9931f722cf757 X-Archives-Salt: d189199e-ab6a-4051-b129-8ad92089a3a3 X-Archives-Hash: c6d4515c15a86a12b63c7663703f0add ------=_Part_3349_13911536.1203871196178 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline diff can use for binary files ? On Sun, Feb 24, 2008 at 10:29 PM, Neil Bothwick wrote: > On Sun, 24 Feb 2008 11:06:10 +0000, Stroller wrote: > > > Is there any way to check the integrity of copied directories, to be > > sure that none of the files or sub-directories in them have become > > damaged during transfer? I'm thinking of something like md5sum for > > directories. > > Diff? > > diff -r /source /dest > will return no output if the two copies are identical. > > > -- > Neil Bothwick > > Never underestimate the bandwidth of a station wagon full of tapes! > ------=_Part_3349_13911536.1203871196178 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline diff can use for binary files ?

On Sun, Feb 24, 2008 at 10:29 PM, Neil Bothwick <neil@digimed.co.uk> wrote:
On Sun, 24 Feb 2008 11:06:10 +0000, Stroller wrote:

> Is there any way to check the integrity of copied directories, to be
> sure that none of the files or sub-directories in them have become
> damaged during transfer? I'm thinking of something like md5sum for
> directories.

Diff?

diff -r /source /dest
will return no output if the two copies are identical.


--
Neil Bothwick

Never underestimate the bandwidth of a station wagon full of tapes!

------=_Part_3349_13911536.1203871196178-- -- gentoo-user@lists.gentoo.org mailing list