I'm developing a project that consists in a tomcat installation with a web app with many classes and libraries and a php side with many many folder and files.
I've got two server debian wheeze and every time i need to do a change, i necessary need to copy from ftp the edited files from local to each two servers.
If edits has been made on java classes, i need to copy .class of each edited files and restart the two tomcat instances of each server.
Is there a way to synchronize in a simple way two folders from a server to another?
Thanks!