public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] md5sum for directories?
@ 2008-02-24 11:06 Stroller
  2008-02-24 11:46 ` Etaoin Shrdlu
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Stroller @ 2008-02-24 11:06 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-02-27  9:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-24 11:06 [gentoo-user] md5sum for directories? Stroller
2008-02-24 11:46 ` Etaoin Shrdlu
2008-02-27  0:38   ` Stroller
2008-02-27  9:40     ` Etaoin Shrdlu
2008-02-24 14:29 ` Neil Bothwick
2008-02-24 16:39   ` cabbage
2008-02-24 16:46     ` Dirk Heinrichs
2008-02-24 16:49     ` Andrew Gaydenko
2008-02-24 19:46 ` Christopher Copeland
2008-02-27  0:51   ` Stroller
2008-02-27  2:36     ` Christopher Copeland
2008-02-24 21:15 ` [gentoo-user] " »Q«
2008-02-26 19:59   ` Mick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox