Backup/restore incase of system failure

charliekapper

Member
Aug 18, 2013
18
0
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
 
Last edited:

Rhuan

Active Member
Nov 10, 2010
43
0
56
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...
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.
 

charliekapper

Member
Aug 18, 2013
18
0
1
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.
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?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.