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
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
On Thu, 9 Feb 2023 at 10:07 PM, Kaushal Shriyan kaushalshriyan@gmail.com wrote:
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@centos.org https://lists.centos.org/mailman/listinfo/centos
On 2/9/2023 8:43 AM, Harshal Lakare wrote:
- Use rsync to compare files between two node , if there is any difference
between source and destination then rsync will sync differential file.
Use --dry-run to do this non-destructively, with the verbose flag to list the differences.
Thanks a lot Kenneth and Harshal for the reply. Appreciate it.
On Fri, Feb 10, 2023 at 6:22 PM Kenneth Porter shiva@sewingwitch.com wrote:
On 2/9/2023 8:43 AM, Harshal Lakare wrote:
- Use rsync to compare files between two node , if there is any
difference
between source and destination then rsync will sync differential file.
Use --dry-run to do this non-destructively, with the verbose flag to list the differences.
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos