Hi,
I have 2 drive sets that are supposed to be identical [I use CentOS 5]: A: 1.6Tb B: 1.49Tb
I need to find the differences, any suggestion?
I have 2 drive sets that are supposed to be identical [I use CentOS 5]: A: 1.6Tb B: 1.49Tb I need to find the differences, any suggestion?
diff will do it.
diff -q /dir-a/ /dir-b/
the -q will just tell you what files are different, not what's different inside the files.
2008/6/23 Spiro Harvey, Knossos Networks Ltd spiro@knossos.net.nz:
I have 2 drive sets that are supposed to be identical [I use CentOS 5]:
A: 1.6Tb B: 1.49Tb I need to find the differences, any suggestion?
diff will do it.
diff -q /dir-a/ /dir-b/
the -q will just tell you what files are different, not what's different inside the files.
I would like to do the same among two, several boxes, that is take thier dir listing to a certain depth, and compare it for differences as an integrity check that they have the same installation files?
W.
I would like to do the same among two, several boxes, that is take thier dir listing to a certain depth, and compare it for differences as an integrity check that they have the same installation files?
then, maybe run a find to extract all filenames, then feed each one into sha1sum or md5sum to get a list of checksums. rinse and repeat on other server, then compare the two resulting sets of data.
I can't think of a single tool to do this all rolled into one.
On Sun, Jun 22, 2008 at 11:47 PM, Spiro Harvey, Knossos Networks Ltd < spiro@knossos.net.nz> wrote:
I would like to do the same among two, several boxes, that is take thier
dir listing to a certain depth, and compare it for differences as an integrity check that they have the same installation files?
then, maybe run a find to extract all filenames, then feed each one into sha1sum or md5sum to get a list of checksums. rinse and repeat on other server, then compare the two resulting sets of data.
I can't think of a single tool to do this all rolled into one.
-- Spiro Harvey Knossos Networks Ltd 021-295-1923 www.knossos.net.nz
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
it may be much faster to use du or df from / to narrow down where the culprits are.
Walid wrote:
2008/6/23 Spiro Harvey, Knossos Networks Ltd spiro@knossos.net.nz:
I have 2 drive sets that are supposed to be identical [I use CentOS 5]:
A: 1.6Tb B: 1.49Tb I need to find the differences, any suggestion?
diff will do it.
diff -q /dir-a/ /dir-b/
the -q will just tell you what files are different, not what's different inside the files.
I would like to do the same among two, several boxes, that is take thier dir listing to a certain depth, and compare it for differences as an integrity check that they have the same installation files?
cd /path/to/check rsync -essh -avn . host:/path/to/check
The -n option says not to actually copy anything, -v says to print the filenames where there are differences.