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.

Disaster Recovery Preparation

Discussion in 'General Discussion' started by pjd2003, Mar 29, 2005.

  1. pjd2003

    pjd2003 Member

    Joined:
    Dec 13, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Hey everyone,

    I do daily backups using WHM's backup feature (to a second drive).
    What I want to know is, in the case my server failed and I lost everything, could I restore *everything* from this backup that is stored on the second drive? i.e. Does it hold ALL system and WHM settings? Or accounts only? Would my DNS server be restored for example? What would be missing? What re-configuration would need to be done once I copied everything back across?

    Thanks
     
  2. maokob

    maokob Member

    Joined:
    Jan 20, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I also want to know about this.
     
  3. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    Yes the backups would be sufficient to restore the box to how it was previous a crash or whatever. Get a clean install and install cpanel, then recover the backup files.

    You would however from experience be better to manually restore the required files, rather than use whm, it would also be quicker too. Restoring a server with a 1000 accounts on can be a lengthy process for example.

    The backups are all stored within

    If /backup is your second drive mount

    /backup/cpbackup/daily

    The files to restore (system and cpanel configs)

    /backup/cpbackup/daily/files/

    The directory backups, cpanel and configs, named, mysql (make sure you have selected to backup the entire mysql directory in whm to have /var/lib/mysql)and mailing lists etc

    /backup/cpbackup/daily/dirs/

    The user files are all in /backup/cpbackup/daily/

    If you untar the backup per user you will find the /home/$user directory is in $user/homedir from the backup, just move $user/homedir to /home/$user and chown and chmod as necessary. Scripts can make this process a very fast way to recover and there are manyu examples, I posted a few within the forum that maybe a search would help you out.
     
  4. maokob

    maokob Member

    Joined:
    Jan 20, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Thank you DigitalN.
     

Share This Page