The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Dedicated backup server acting as a failover

Discussion in 'Data Protection' started by ruiz, Dec 16, 2010.

  1. ruiz

    ruiz Active Member

    Joined:
    Feb 13, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    I had an idea and i want to know if you guys think it'll work.

    My current state:
    I have 5 servers with around 100 accounts each, all of then using almost the same setup (same OS, similar cpanel version, same daemons, etc) and i also have 1 dedicated server to hold all backups that are done only once per week by cpanel since they take almost 10 hours to finish.

    If one of my servers fail, i'll restore those 1 week old backups to my backup server, and this server will work as a live server while the old server's being repaired.

    Here's my idea:
    I'm planning on using rsync instead of the bundled cpanel backup because i need to have my backup server with snapshots not older than 1 day, and also not compressed so i put then live in minutes. My steps will be:

    - Rsync everyday all data from the live servers to my backup server. I'll use this folder format (xxx.xxx.xxx.xxx is the server ip):
    /backups/xxx.xxx.xxx.xxx/home/
    /backups/xxx.xxx.xxx.xxx/var/lib/mysql
    /backups/xxx.xxx.xxx.xxx/usr/local/apache/conf
    /backups/xxx.xxx.xxx.xxx/var/named
    /backups/xxx.xxx.xxx.xxx/etc/*named*
    /backups/xxx.xxx.xxx.xxx/etc/rndc.conf
    /backups/xxx.xxx.xxx.xxx/etc/rndc.key
    /backups/xxx.xxx.xxx.xxx/usr/local/cpanel/3rdparty/mailman
    /backups/xxx.xxx.xxx.xxx/var/log/bandwidth
    /backups/xxx.xxx.xxx.xxx/var/spool/cron
    /backups/xxx.xxx.xxx.xxx/var/cpanel
    /backups/xxx.xxx.xxx.xxx/var/cpanel/cpanel.config
    /backups/xxx.xxx.xxx.xxx/usr/local/cpanel/etc/cpanel.config
    /backups/xxx.xxx.xxx.xxx/etc/remotedomains
    /backups/xxx.xxx.xxx.xxx/etc/ssldomains
    /backups/xxx.xxx.xxx.xxx/etc/userdomains
    /backups/xxx.xxx.xxx.xxx/etc/localdomains
    /backups/xxx.xxx.xxx.xxx/etc/domainusers
    /backups/xxx.xxx.xxx.xxx/etc/valiases
    /backups/xxx.xxx.xxx.xxx/etc/vfilters
    /backups/xxx.xxx.xxx.xxx/etc/proftpd*
    /backups/xxx.xxx.xxx.xxx/etc/pure-ftpd*
    /backups/xxx.xxx.xxx.xxx/etc/passwd
    /backups/xxx.xxx.xxx.xxx/etc/group
    /backups/xxx.xxx.xxx.xxx/etc/shadow
    /backups/xxx.xxx.xxx.xxx/etc/cpupdate.conf
    /backups/xxx.xxx.xxx.xxx/etc/ssl
    /backups/xxx.xxx.xxx.xxx/etc/true*
    /backups/xxx.xxx.xxx.xxx/etc/wwwacct.conf

    - In case of a disaster with one of my live servers, i'll just copy these backup'd files from my backup folder to the actual folders in my backup server. If i do so, you guys think my backup server will act as if the copied accounts are live? I mean, i need everything working exactly as live, apache, e-mails, databases, cpanel, everything.

    BTW: Of course i'll need to update my dns servers to point those accounts to the backup server and i also know that databases can't really be rsync'd without problems.

    When the live server is repaired. i'll just rsync the /home folder back to it and update the dns servers. So, what do you guys think?

    Edit: I'm not sure those are the files needed for what i'm trying to do here, i just copied then from another thread. So if you know the exact files/folders i need please post then.

    Thanks!!
     
    #1 ruiz, Dec 16, 2010
    Last edited: Dec 16, 2010
Loading...

Share This Page