[NTLUG:Discuss] checking backups
Ralph Green, Jr.
sfreader at sbcglobal.net
Tue Jan 4 22:04:04 CST 2005
Howdy,
I want to verify that a backup of many files has worked. I can do it,
but my method seems a bit brutish, and I suspect there may be an easier
way to do this. In both cases, the files and directories(up to 3 levels
deep) are stored on Linux machines. Here is my method.
On each machine,
1. cd to the directory containing the files
2. find -name "*" > checkem.sh
3. edit the file to add /usr/bin/md5sum to start of each line and the
generic shell stuff at the top(i.e., #!/bin/sh)
4. run the script on both machines, redirecting output to a save file.
5. compare results
Is there a simple way to do this?
--
Good day,
Ralph Green, Jr. <severian at pobox.com>
More information about the Discuss
mailing list