Introduction

In this Knowledge base, you will find the cpconf tool is used to backup and restore the settings if one wishes to migrate to a new server or to copy the configuration files.

Let’s see the Procedure:
The cpconf tool is used 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 more details on the cpconf tool, please review the documentation at cpconftool script.

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

How would you Set Up Nameservers in cPanel and WHM?

This article will be of assistance to you. In cPanel and WHM, how can you…

Terms Relating to Web Hosting (Series U, V, W)

Terms Relating to Web Hosting (Series U, V, W) UDP – User Data gram Protocol.…

Protecting Data On Your SSD Using SafeGuard Device Encryption

At this point in the game, you should understand the importance of encryption for keeping…