Community Forums
Connect with us on LinkedIn
Community Notice
Closed Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    1

    Default What To Backup For CPanel Restore?

    Hello,

    I do daily cpanel backup of whole server and all accounts. Then I do daily rsync incremental transfer of backup to another box located at different place.

    The backup directory structure is similar to this:
    Code:
    /daily
      /dirs
      /files
      /x account
      /x1 account...
    I believe this is the best backup configuration after reading plenty of posts hear. I do not want to rely on RAID, the realibilty is for me more important that the instant restore. But...

    My main concern is about mysql backup - do I really need "Per Accounts and Entire Mysql Dir" option? What is "Entire Mysql Dir" for? Is it worth the disk space?

    From what I have read it is much better to restore mysql from dumps, and "plain mysql files" may be not enough to restore. So why should I backup these files? What do you think?


    And one more question: how to restore from this backup when failure day comes?
    I have no experience with this and it may be too late one day I would copy the whole backup directory to the new disk with fresh OS+Cpanel, but what to do next? Is there Cpanel script to do this?

    Thanks a lot.

    Frelliot.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    It's a good idea to use the "Per Accounts and Entire Mysql Dir" . The first does a mysqldump, the second is a copy of /var/lib/mysql - it's handy having both incase the mysqldumps have failed for some reason. The mysql dir isn't ideal as MySQL isn't stopped when it is run, but it's better than losing a database.

    My personal preference to restore a whole server and maintain IP address allocation is to use this procedure:

    1. Restore /dirs/_var_cpanel.tar.gz
    2. Delete all the files in /var/cpanel/users/*
    3. Restore /files/_etc_ips.gz
    4. Perform a Multi-Restore in WHM for all the user accounts
    5. Rebuild apache and php as you had them before
    6. Restore /files/_usr_local_apache_conf_apache_conf.gz
    7. Restart apache
    8. Restore /dirs/_var_named.tar.gz
    9. Restore /files/_etc_named_conf.gz
    10. Restart named
    Last edited by chirpy; 07-21-2006 at 11:28 AM.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. backup restore in cpanel
    By mahdi1 in forum Data Protection
    Replies: 7
    Last Post: 07-28-2009, 01:35 PM
  2. Replies: 1
    Last Post: 07-31-2008, 03:24 AM
  3. Restore Cpanel Backup.
    By saeed63 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-12-2006, 04:47 PM
  4. Cpanel Backup and restore help?
    By Wicked in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 03-12-2006, 05:50 PM
  5. using the restore backup in cpanel
    By pcwhite in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 03-14-2002, 01:13 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube