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 Monitor System Resource Usage Over a Specified Time Using Atop

This guide explains monitoring system resource usage using atop over a specified time. Atop command…

What to Do When One or More Devices Failed Backup?

Here is the solution to solve when one or more devices fail in backup (error…

How to Fix the Error 404 not found?

As you browse the internet, you might occasionally land on a page that doesn’t load…