1

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 ) ..

Updated

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 .

Update

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

9
  • 1
    Posting as a comment since you'd still have to adapt the answer, but have you seen this question over on Server Fault? Jul 2, 2012 at 19:59
  • Are these identical servers?
    – Mitch
    Jul 3, 2012 at 9:30
  • yes it is ......100 %
    – One Zero
    Jul 3, 2012 at 12:18
  • Are they going to be in the same location or different locations?
    – Mitch
    Jul 4, 2012 at 17:32
  • 1
    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? :)
    – ish
    Jul 6, 2012 at 22:39

3 Answers 3

3
+250

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

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

1
  • its not what i want ...but its is the closest one ...& ty
    – One Zero
    Jul 9, 2012 at 12:38
-1

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

1
  • 1
    this is not an answer to my question
    – One Zero
    Jul 2, 2012 at 19:53
-1

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.

4
  • tested ......... Drbd , glusterfs ....
    – One Zero
    Jul 5, 2012 at 0:50
  • @OneZero and it does not satisfy your needs?
    – lumbric
    Jul 6, 2012 at 7:08
  • i dont want to replicate data ... i want to replicate ubuntu server .. hope you will now understand
    – One Zero
    Jul 6, 2012 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, 2012 at 8:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .