Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

I want to replicate 2 Ubuntu Server . So if i change settings on one server it will replicate to other .

The Server Will be Running Zpanel ( mysql , bind , apache , postfix , etc ) ..


The server 2 is exact the same copy of Server 1 . Basically after installing & updating server 1 i have made clone of server 1 . I am using Vmware Workstation for testing .


if i update DB or something like update in /var/www/ on 1st server it automatically update on 2nd server ....... what i really want is ... i have 2 servers ..that will be Web hosting Servers ( Zpanel) i want Replication on 2 identical server if one is down 2nd one will be up as it an replica of 1st

share|improve this question
Posting as a comment since you'd still have to adapt the answer, but have you seen this question over on Server Fault? – Tom Brossman Jul 2 '12 at 19:59
Are these identical servers? – Mitch Jul 3 '12 at 9:30
yes it is ......100 % – One Zero Jul 3 '12 at 12:18
Are they going to be in the same location or different locations? – Mitch Jul 4 '12 at 17:32
See, on one hand you say you want only settings to be replicated, no data, but then you say "var/www or DB" should be updated -- THAT is data, not settings. So which do you want? :) – izx Jul 6 '12 at 22:39
up vote 2 down vote accepted

What is Web server replication?

Replicating a web server machine is the process of synchronizing two or more machines, so that they each have the exact same files, at any given point in time.

Benefits of Web server replication

There are two primary benefits to web server replication:

  1. High availability
  2. Performance during high load times


Rsync is a Linux shell utility that supports efficient copying of data between two servers.

Unlike "normal copy" - Rsync only copies differential data (what just got changed, instead of all the files). Another benefit of Rsync is that it copies over SSH - so data is encrypted across the channel.

Rsync is one of the most popular methods to replicate web servers. It's reliable, easy to setup and fast.

This guide, will walk you through the process of using Rsync to replicate two web server machines.

Below are the needed setup steps

  1. Install RSync
  2. Select folder(s) to replicate
  3. Create Rsync server config file
  4. Installing & Running Rsync server
  5. Fetching changes with the Rsync client
  6. Setting Rsync client as a cronjob 1

Read More

1Source: SPI

share|improve this answer
its not what i want ...but its is the closest one ...& ty – One Zero Jul 9 '12 at 12:38

You could use rsync. Keep 2 servers in sync with rsync and ssh

share|improve this answer
this is not an answer to my question – One Zero Jul 2 '12 at 19:53

I think you are searching for something like DRBD. There might be also alternatives available, but this is certainly a good starting point to search for a solution for your use case.

share|improve this answer
tested ......... Drbd , glusterfs .... – One Zero Jul 5 '12 at 0:50
@OneZero and it does not satisfy your needs? – lumbric Jul 6 '12 at 7:08
i dont want to replicate data ... i want to replicate ubuntu server .. hope you will now understand – One Zero Jul 6 '12 at 8:19
@OneZero Ah ok. Not as a backup system, but in order to have two different, but equal servers? Maybe you should edit your question and clarify what needs to be synchronized and what not. – lumbric Jul 6 '12 at 8:26

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.