How Can I Restore Old Settings to My cPanel Server?

September 8, 2021 / cPanel

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.

Leave a Reply

Your email address will not be published. Required fields are marked *