Introduction
If you are migrating to a new server or wanting to copy your configuration files, you can use the cpconf tool to backup and restore those settings.
Procedure
You can utilize the cpconftool to backup, and restore the configuration files. The script is located at /usr/local/cpanel/bin/cpconftool
To restore a backup, you would use something like this, replacing /home/whm-config-backup-all-1.1-1411229033.tar.gz
with the path to your backup, and --modules=
with the modules you need to restore:
/usr/local/cpanel/bin/cpconftool --restore=/home/whm-config-backup-all-1.1-1411229033.tar.gz --modules=cpanel::smtp::exim
You can use --list-modules to get a list of the available modules on your server.
cpanel::easy::apache
cpanel::smtp::exim
cpanel::system::autossloptions
cpanel::system::backups
cpanel::system::greylist
cpanel::system::hulk
cpanel::system::modsecurity
cpanel::system::mysql
cpanel::system::whmconf
cpanel::ui::themes
For additional details on the cpconf tool, please review our documentation at cpconftool script