Re: Directory compare

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Walid wrote:
2008/6/23 Spiro Harvey, Knossos Networks Ltd <spiro@xxxxxxxxxxxxxx>:

 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
    lesmikesell@xxxxxxxxx




_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux