[CentOS] Compare directories and files including files content from both node1 and node2

Thu Feb 9 16:43:38 UTC 2023
Harshal Lakare <harshal.lakare at gmail.com>

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

Harshal Lakare

On Thu, 9 Feb 2023 at 10:07 PM, Kaushal Shriyan <kaushalshriyan at gmail.com>

> 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
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos
Sent from My iPhone