PrintLogo

Quick And Dirty Directory Replication Verification




The combination of find and wc is perfect for doing a quick verification of the integrity of the transfer. It doesn't verify the content of the files; however, it is quick. Run this command in the root of the source and destination directories:

find . | wc
9052    9052  256270

The first column of the wc output is the number of lines. The second column is the number of words, and the third column is the number of characters. The output of this count will include hidden files as well. If the output matches on both trees, it means there are the same number of files in both trees, and that the total of the characters in the names/paths used to describe the files is the same. Hit this with a more intensive app like md5deep, which we cover in this article, to do a more thorough check.



This article comes from NetAdminTools:
http://www.netadmintools.com/

The URL for this story is:
http://www.netadmintools.com/art501.html

Copyright 1997-2007 NetAdminTools.com. Read our Terms of Use.