Ideas.. I've seen people kill in the name of them... and die defending them. We are told to remember the idea, not the man. Because a man can fail. He can be caught, he can be killed and forgotten. But several years later... his idea can still change the world.
inotify
mirroring a directory between 2 servers
Submitted by linuxawy on Mon, 07/01/2008 - 2:09pm
I've used this script to synchronize 2 public directorys inside 2 mongrel clusters. but you can use it to continously sync/mirror any 2 directorys on 2 different servers. note that it any change made will be committed instantaniously (or with a delay due to connection only) on the other directory. This uses inotify tools to know on any file create/change/delete and rsync to commit the changes on the other server.




![[FSF Associate Member] width=160](http://www.linuxawy.org/files/FSF-member.png)














