[CentOS] Directory compare
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? -- Thanks http://www.911networks.com When the network has to work ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Directory compare
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. -- Spiro Harvey Knossos Networks Ltd 021-295-1923www.knossos.net.nz ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Directory compare
2008/6/23 Spiro Harvey, Knossos Networks Ltd [EMAIL PROTECTED]: 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. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Directory compare
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-1923www.knossos.net.nz ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Directory compare
On Sun, Jun 22, 2008 at 11:47 PM, Spiro Harvey, Knossos Networks Ltd [EMAIL PROTECTED] 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-1923www.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. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Directory compare
Walid wrote: 2008/6/23 Spiro Harvey, Knossos Networks Ltd [EMAIL PROTECTED]: 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. -- Les Mikesell [EMAIL PROTECTED] ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Directory Compare
I need to verify some directories of backed up data versus restored data. What would you recommend as the type of comparison to do, and which tool would give the easiest/most usable output? Thanks! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Directory Compare
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joseph L. Casale wrote: I need to verify some directories of backed up data versus restored data. What would you recommend as the type of comparison to do, and which tool would give the easiest/most usable output? # fiff /path/to/dir1 /path/to/dir2 Regards, Max - -- # find . *imbecile -exec sed -ie s/stupidity/commonsense/g '{}' \; -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFILIgfIXSX/6LmsXkRAt/cAJ9ljU8yh0YcLdVylLlX659wBMVwHQCeIjLd RuKSPCwnXNInhZAPxq7KRcU= =I5R8 -END PGP SIGNATURE- ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] Directory Compare
# fiff /path/to/dir1 /path/to/dir2 Regards, Max diff? Yeah, that's what I am about to run. Just thought their might be something it might miss in that scenario. Thanks for the confirmation! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Directory Compare
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joseph L. Casale wrote: diff? Yeah, that's what I am about to run. Just thought their might be something it might miss in that scenario. Thanks for the confirmation! Oops, yeah diff not fiff. I need typing lessons today! Max - -- # find . *imbecile -exec sed -ie s/stupidity/commonsense/g '{}' \; -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFILIyjIXSX/6LmsXkRAtMMAJ45cD8HL34c46ubzb1iFCu9mGr34wCgirzv np1JOZIzzzkUiVyGHBnYszY= =7Rjw -END PGP SIGNATURE- ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Directory Compare
Joseph L. Casale wrote: I need to verify some directories of backed up data versus restored data. What would you recommend as the type of comparison to do, and which tool would give the easiest/most usable output? Diff works if they are on the same machine. On different machines you can: rsync -avn -essh local-dir [EMAIL PROTECTED]:/path/above_dir The -a option says to recurse and take all possible attributes, -v says show the file names, and -n says don't actually do it (be careful not to omit that..). This will give you a list of filenames that have some difference between local_dir and the remote copy. If you add a --delete it will also show anything that exists in the remote but not the local side (and be especially careful not to omit the -n in this case). -- Les Mikesell [EMAIL PROTECTED] ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Directory Compare
On 05/15/2008 08:51 PM, Joseph L. Casale wrote: I need to verify some directories of backed up data versus restored data. What would you recommend as the type of comparison to do, and which tool would give the easiest/most usable output? You might look at mc (Norton Commander clone) Sorry for Debian package description - have here, at home, only Debian $ aptitude show mc [...] Description: midnight commander - a powerful file manager GNU Midnight Commander is a text-mode full-screen file manager. It uses a two panel interface and a subshell for command execution. It includes an internal editor with syntax highlighting and an internal viewer with support for binary files. Also included is Virtual Filesystem (VFS), that allows files on remote systems (e.g. FTP, SSH, SMB servers) and files inside archives to be manipulated like real files. Thanks! jlc cheers Simon signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos