Compare Directories And Files Including Files Content From Both Node1 And Node2

Home » CentOS » Compare Directories And Files Including Files Content From Both Node1 And Node2
CentOS 3 Comments

Hi,

I am running CentOS Linux release 7.9.2009 (Core) on node1 and node2. Is there a way to compare both files and directories in web server document root -> /var/www/html/webservices residing on both node1 and node2
including the files content.

It is to make sure that both nodes are having the same file contents,number of files,subdirectories and directories.

Please guide me. Thanks in advance.

Best Regards,

Kaushal

3 thoughts on - Compare Directories And Files Including Files Content From Both Node1 And Node2

  • In my opinion here is the options you have,

    1) Use nfs to share same or identical file across the host.
    2) Use rsync to compare files between two node , if there is any difference between source and destination then rsync will sync differential file.

    Hope it will help you

    Regarding, Harshal Lakare