Clone a cPanel server configuration to a new server (excluding server specific items)

As a Server Administrator, I want the ability to clone a cPanel server to a new setup, so that deployment of new servers is simplified and quicker.

Cloning should include:

 

  • Tweak Settings (i.e. /var/cpanel/cpanel.config)
  • Exim Configuration
  • Feature Lists
  • Packages
  • Custom EasyApache Profiles
  • Reseller ACLs
  • Statistics Software Configuration
  • Update Preferences
  • /var/cpanel/rpm.versions.d
  • Other settings to be defined

 

Cloning should explicitly exclude:

  • IP Addresses
  • Nameservers
  • Hostname
  • cPanel Accounts
  • Anything that is server-specific

To Bakcup :

# /usr/local/cpanel/bin/cpconftool

/usr/local/cpanel/bin/cpconftool [--restore=file|--backup|--list-modules] [--modules=MODULE,MODULE,MODULE]

# /usr/local/cpanel/bin/cpconftool --backup

Backup Successful

To Restore :

/home/whm-config-backup-all-1.1-1373690794.tar.gz

Was this answer helpful?

 Print this Article

Also Read

cPanel Exim How To Clear The Mail Queue

Here’s the proper way to clear the exim mail queue on a cpanel server. /etc/init.d/exim...

MySQL database not showing in cPanel

If database is not showing in cpanel, make sure database exists in the server. If it exists, make...

How do I create a MySQL database and user in cPanel/WHM? How do I connect them?

To create a MySQL database and user, log into the cPanel interface for the desired domain and...

How do I prevent SSL Certificate Warnings when accessing cPanel?

All cPanel servers come with self-signed certificates configured to secure the control panel as a...

How to host the primary domain from a subfolder (.htaccess)?

Summary The public_html directory for all of its Web site files. Addon domains use sub...

Powered by WHMCompleteSolution