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 to Restart Apache on Dedicated Server

How to Restart Apache on Dedicated Server

The only option for manually restarting any service is to use a dedicated server with…

How-do-to-Set-up-Nginx-as-a-Reverse-Proxy-in-Plesk.png

How to Set up Nginx as a Reverse Proxy in Plesk?

In this post, we’ll show you how to set up Nginx as a reverse proxy…

How to Easily Download & Install Postman on Your Windows

A well-liked tool for developing, testing, and modifying APIs is Postman. This is a step-by-step…