0
here we can see that md5sums of this two directories are different, how to tell if the folder structures or some certain files are the reason of this difference?
[skynet]~> ssh evn-web04 'find /www/web/prod/evn.tumo.lab -type f -exec md5sum {} \; |sort -k 34 | md5sum' Ubuntu 14.04.4 LTS evn-web04.tumo.lab ssh-pty f247a2e41cf54f14cefe83b8872ae862 - [skynet]~> ssh evn-web03 'find /www/web/prod/evn.tumo.lab -type f -exec md5sum {} \; |sort -k 34 | md5sum' Ubuntu 14.04.4 LTS evn-web03.tumo.lab ssh-pty 53413a49fb754210666f4292e8b9ee14 -
How can I generate the list of files in given sub directory, I mean how can I get the full tree and also probably exclude some files or folders. – Edik Mkoyan – 2016-03-17T13:25:14.037
@EdikMkoyan Just tweak the parameters to
find
to suit your needs.md5sum --check
will look strictly at the list of files it is fed (which is also why you need to do this twice to make sure both servers are fully in sync). – a CVn – 2016-03-17T13:27:36.490