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.

Backup/restore incase of system failure

Discussion in 'General Discussion' started by charliekapper, Aug 23, 2013.

  1. charliekapper

    charliekapper Member

    Joined:
    Aug 18, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi there,

    Note - using cloud linux if that helps.

    I have 200 accounts on one dedicated server.

    Is there a way to schedule automatic backups to an offsite ftp server?
    The backups need to be packed so that if in the case the dedicated server failed, I could easily restore the users account and files e.g. dns zones, mysql data, home files etc.

    Is there also a way so that all accounts are backed up to one file so if the server failed I can restore them all the same as above without having to do each one manually?

    If possible a master backup of WHM would be great too of things like php.ini settings, WHM configuration files etc, so that I can restore the new server exactly as WHM was setup on the failed server.

    Thanks
     
    #1 charliekapper, Aug 23, 2013
    Last edited: Aug 23, 2013
  2. Rhuan

    Rhuan Active Member

    Joined:
    Nov 10, 2010
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hi :)
    My name is Rhuan and I will try to help you

    1- Yes, you can make a external backup of accounts, look at this thread: http://forums.cpanel.net/f49/backing-up-backup-directory-files-external-ftp-server-286991.html

    2- 1 file per account but this is not a problem, search in the Google for rsync is very easy to use

    3- In this momment cPanel make backup only of this httpd.conf (apache) pure-ftpd, proftpd, exim and named to make a backup of anothers files you have to setup a cronjob...
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    649
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please see the following document:

    WHM - Configure Backup

    It explains the various options available, and how to enable them. This includes the ability to backup the accounts and store them on a remote FTP server. The individual backup files include all data associated with the accounts (e.g. databases, ftp accounts, email). You can restore accounts from a remote FTP by following the instructions at:

    Restore - Remote Destination

    Note that it's not recommended to manually restore configuration file on a new server. Configuration files should typically only be restored on the same server they were backed up on. Most configuration files are populated automatically when an account is restored (e.g. httpd.conf entries).

    Thank you.
     
  4. charliekapper

    charliekapper Member

    Joined:
    Aug 18, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Ok thanks and thanks Rhuan!

    If my server couldn't be fixed, how would I restore the accounts onto another whm/cpanel server? I have dns cluster also.

    Also if I had to restore to another server how would I restore all accounts in bulk?

    Is it possible to backup the whole whm files e.g. apache config, php settings etc so that I can mirror the settings on another server or if like above I had to setup another server and needed the same setup of whm?
     
    #4 charliekapper, Aug 26, 2013
    Last edited: Aug 26, 2013
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    649
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You would have to move the backup files to the new cPanel/WHM server and restore them. You could follow the same instructions from:

    Restore - Remote Destination

    If you wanted to restore multiple accounts from the command line, you would move the backup archives to a new directory and use a command like this:

    Code:
    for i in $(ls | grep .tar.gz) ; do /scripts/restorepkg $i ; done ;
    Server mirroring is not natively supported in cPanel/WHM at this time. There is an open feature request for this at:

    Server Configuration And Data Auto-Sync

    Thank you.
     
Loading...

Share This Page