Goline Logo

FAQ

News

  • New Partnership Between Goline and EaseUS: Technology and Innovation at Your Service. We are excited to announce our collaboration with EaseUS, a leading company in data management, file recovery, and disk cloning software. This collaboration allows us to provide our users with reliable and cutting-edge tools to manage and protect their devices efficiently. Exploring the Benefits of Our New Partnership with EaseUS This collaboration enhances our capability to deliver top-notch services to our community. With EaseUS, you can optimize storage space, recover lost files, and clone disks easily and securely. Whether you're a home user or an IT professional, you'll...
  • GOLINE SA partner with FileCloud November 25th, 2024
  • In the supply and logistics sectors, email communication is pivotal. However, organizations face threats like email fraud and phishing. GOLINE SA's clients struggled with configuring email authentication protocols manually. To address this challenge, GOLINE SA partners with PowerDMARC as an MSP Partner, collaborating to streamline implementation and management. PowerDMARC's cloud-based platform automated DMARC, SPF, and DKIM protocols for GOLINE SA's clients. This streamlined the transition to DMARC enforcement policies, bolstering domain protection without compromising email deliverability. The intuitive platform facilitated easy navigation and provided detailed reporting for proactive issue resolution. Strategic Collaboration: GOLINE SA Partners with PowerDMARC GOLINE SA's clients...

Copy cPanel Server configuration

Paolo Caparrelli cPanel 22 June 2022

Also, /usr/local/cpanel/bin/cpconftool will back up and restore the Exim configuration and Tweak Settings. The Tweak Settings are mostly stored in /var/cpanel/cpanel.config, so this does overlap some of the information I mentioned in my previous post, but I wanted to mention it because it could be helpful to you. Here is the usage:

Code:
/usr/local/cpanel/bin/cpconftool –help

/usr/local/cpanel/bin/cpconftool [–restore=file|–backup|–list-modules] [–modules=MODULE,MODULE,MODULE]

When you run it with the –backup argument, it will create a tarball (.tar.gz file) that you can copy to the new server and restore using the –restore= argument. This tool only works with Tweak Settings and the Exim configuration at this time, so for other data like EasyApache profiles, you will still need to use the methods I described in my previous post.

 

The cpconftool Script

 

Skip to end of metadata

Go to start of metadata

 

For cPanel & WHM version 11.50

 

Overview

The /usr/local/cpanel/bin/cpconftool script backs up and restores the Exim configuration file and cpanel.config file. This is useful, for example, when you migrate your cPanel & WHM accounts to a new server.

The /usr/local/cpanel/bin/cpconftool script

To use this script, run the following command as the root user:

/usr/local/cpanel/bin/cpconftool –argument

Arguments

The /usr/local/cpanel/bin/cpconftool script accepts the following arguments:

Argument
Description
Example
–restore

Restore a backup file.

 

–restore=/home/whm-config-backup-all-1.1-1411229033.tar.gz
–backup

Generate a backup file.

 

–backup=cpanel::system::tweaksettings,cpanel::smtp::exim

 

 

–list-modules List the available modules on your server.

The output will resemble the following example:

1
2
cpanel::system::tweaksettings
cpanel::smtp::exim
–modules

A comma-separated list of the modules to restore or back up.

Note:

You can pass this argument with the –restore and –backup arguments to restore or backup specific modules.

–modules=cpanel::system::tweaksettings,cpanel::smtp::exim

Example

To restore the settings in the cpanel::system::tweaksettings module from a specific backup file, run the following command:

/usr/local/cpanel/bin/cpconftool –restore=/home/whm-config-backup-all-1.1-1434047759.tar.gz –modules=cpanel::system::tweaksettings

The output will resemble the following example:

1
2
3
4
5
6
7
8
9
10
11
cpanel::system::tweaksettings:
  post_restore:
–snip–
   status: 1
    statusmsg: Update TweakSettings Succeeded
  restore:
    data:
      warnings: []
  
    status: 1
    statusmsg: "Whostmgr::Config::Restore::System::TweakSettings: ok"

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x