Compare files on 2 servers and list if changings happen

I would like to increase the security of my projects. Therefore I am looking for a software which compares the files of 2 servers automatically and which gives an alert if some files are changed. Sometimes hackers manage to break in servers and thats hardly visible. Maybe hackers upload files and admin does not recognize it. can anybody give tips to increase the server security?

Skywalker's picture

Use rsync

You can use rsync for this. It is mainly used to sync across servers minimizing data consumption. It does it by comparing files. But the amazing matter is, you can use -n flag  along with rsync to compare files. It will show you the files different from two locations. Let me show you-


rsync -n -avrc /abc/home/sample1/* server2:/abc/home/sample2/

Vote the answer: 
No votes yet