1 |
Hi there, |
2 |
|
3 |
I'm in the habit of backing up customer data by booting from knoppix, |
4 |
connecting a portable hard-drive and copying with `cp -rvf`. |
5 |
|
6 |
When this has finished I connect the portable hard-drive to my |
7 |
desktop machine, copy the directory of data from it to my homedir, |
8 |
and make a zip file of the directory. |
9 |
|
10 |
I've done this loads in the past, and never been aware of any file |
11 |
corruption, but I guess I'm just paranoid today. Perhaps I shouldn't |
12 |
use the -v flags during my copy - it's reassuring to see the files |
13 |
being copied, but what if I overlooked a bunch of errors in the |
14 |
middle of all those thousands of "copied successfully" confirmations? |
15 |
What if something has gone wrong during one of the two copies? |
16 |
|
17 |
So my question is: |
18 |
|
19 |
Is there any way to check the integrity of copied directories, to be |
20 |
sure that none of the files or sub-directories in them have become |
21 |
damaged during transfer? I'm thinking of something like md5sum for |
22 |
directories. |
23 |
|
24 |
|
25 |
It occurred to me that one could run `find . -type f -exec md5sum \{} |
26 |
\; > file.txt` on both machines and diff the outputs, but some of |
27 |
these directories contain many thousands of files, and I'd imagine |
28 |
that mdsumming of all these could take some time. |
29 |
|
30 |
Does anyone have any suggestions, please? |
31 |
|
32 |
Stroller. |
33 |
|
34 |
|
35 |
-- |
36 |
gentoo-user@l.g.o mailing list |