Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Basically i owns 3 systems where one act as a Balancer Node , and the data for the websites resides over the other two.

The Problem is :

i want to update all the 2 nodes with the same data (means .php files , which my website is designed) when i update either one of them . note: .php source files have to be updated

what can i do?

Doubt : i have also one doubt to ask can i basically call the group (balancer system and the nodes ) as a cloud ?

share|improve this question
Do you want to simultaneously update your both node? – Abhishek Anand Amralkar Mar 1 '13 at 5:23
yes thats it , bu i may update only a common source – 7-isnotbad Mar 1 '13 at 5:40

You can try using a git repo... basically what we do is we create a GIT repo and push our code to it, and on the webserver, we clone that repository on deployment path e.g. /var/www/html/xyz and evry time a developer commits to the repo, there is a custom script that is triggered to pull new files from git to target webservers...

share|improve this answer
You can also try lsyncd – mohit Mar 7 '13 at 9:49
or u can try incrond + rsync – mohit Mar 7 '13 at 11:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.