ThePerfect Server - Debian Wheezy (nginx, BIND, Dovecot, ISPConfig 3) - Clone configuration

Discussion in 'HOWTO-Related Questions' started by JDT, Jan 6, 2016.

  1. JDT

    JDT New Member

    I have the above mailserver running on an embedded box for about 2 years now. All working perfectly as expected!

    I now have another machine exactly the same as the original. Same h/w, same SSD, same OS. Given it the same server hostname. Different LAN static address (obviously). I have installed the same Perfect server s/w as above. Have not configured in any way yet.

    What I want to do now is to rsync from the original machine to the new machine all the files necessary to effectively clone the configuration. And to repeat this at regular intervals (daily?) so that I can switch to the second machine if a fault occurs on the first.

    1/ Which files and directories need to be rsync'ed?
    2/ Do I need to stop or lock mysql while syncing the databases?

    Sorry if this has been asked before.
     
  2. blackfox123

    blackfox123 Member

    Maybe make use of the mirror function: https://www.howtoforge.com/community/threads/mirror-ispconfig-3.56821/
    (that was quick search, i'm sure there are others for your OS)

    Or you can look into high-availability - https://www.howtoforge.com/high-ava...replication-mirror-across-two-storage-servers

    As for MySQL you can do replication if you're using InnoDB.

    I've not yet tested any of the above, i've just done extensive reading on the topic as i'm going to be implementing such a solution in the very near future.
     
  3. blackfox123

    blackfox123 Member

  4. JDT

    JDT New Member

    Thank you both. Some ideas which I will investigate.
    At the moment, running the mailserver with no backup! However I did re-boot from a CD and clone the HD with clonezilla last week so all would not be lost. Really need a better solution!
     

Share This Page