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 1JTEgg-0000W2-SS for garchives@archives.gentoo.org; Sun, 24 Feb 2008 11:06:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 607BFE039B; Sun, 24 Feb 2008 11:06:28 +0000 (UTC) Received: from mercury.eclipse.kcom.com (mercury.karoo.kcom.com [212.50.160.61]) by pigeon.gentoo.org (Postfix) with ESMTP id 212AEE039B for ; Sun, 24 Feb 2008 11:06:28 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.25,397,1199664000"; d="scan'208";a="255703503" Received: from compaq.stroller.uk.eu.org ([213.152.39.90]) by mercury.eclipse.kcom.com with ESMTP; 24 Feb 2008 11:06:28 +0000 Received: from [192.168.1.71] (funf.stroller.uk.eu.org [192.168.1.71]) by compaq.stroller.uk.eu.org (Postfix) with ESMTP id 80E0AE82C8 for ; Sun, 24 Feb 2008 11:06:25 +0000 (GMT) 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 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <7B4F9B31-ABDE-47C7-B841-2D3902E7B3DD@stellar.eclipse.co.uk> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: gentoo-user@lists.gentoo.org From: Stroller Subject: [gentoo-user] md5sum for directories? Date: Sun, 24 Feb 2008 11:06:10 +0000 X-Mailer: Apple Mail (2.752.2) X-Archives-Salt: 44725678-b736-49b7-850b-bd81c9ae43ca X-Archives-Hash: 5df7a965411e8bc7e560ade525fba87a Hi there, I'm in the habit of backing up customer data by booting from knoppix, connecting a portable hard-drive and copying with `cp -rvf`. When this has finished I connect the portable hard-drive to my desktop machine, copy the directory of data from it to my homedir, and make a zip file of the directory. I've done this loads in the past, and never been aware of any file corruption, but I guess I'm just paranoid today. Perhaps I shouldn't use the -v flags during my copy - it's reassuring to see the files being copied, but what if I overlooked a bunch of errors in the middle of all those thousands of "copied successfully" confirmations? What if something has gone wrong during one of the two copies? So my question is: 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. It occurred to me that one could run `find . -type f -exec md5sum \{} \; > file.txt` on both machines and diff the outputs, but some of these directories contain many thousands of files, and I'd imagine that mdsumming of all these could take some time. Does anyone have any suggestions, please? Stroller. -- gentoo-user@lists.gentoo.org mailing list