[NTLUG:Discuss] checking backups

David IS Mandala davidm at them.com
Tue Jan 4 22:38:45 CST 2005


Use rsync to make the backup and run it a second time to verify the
backup. It does a crc on each file automatically.

On Tue, 2005-01-04 at 22:04, Ralph Green, Jr. wrote:
> 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?
-- 
David Mandala <davidm at them dot com>
www.them.com/~davidm Public Key id: 45B2D952
Murphy TX, 75094 972.384.2111 H 972.693.4007 C




More information about the Discuss mailing list