Copy cPanel Server configuration | GOLINE
Goline Logo



  • Route RPKI validation April 1st, 2022
    RPKI is a security framework by which network owners can validate and secure the critical route updates or Border Gateway Protocol (BGP) announcements between public Internet networks. BGP is essentially the central nervous system of the Internet and one of its fundamental building blocks. The main function of BGP is to facilitate efficient routing between Autonomous Systems (AS), by building and maintaining the Internet routing table. The Internet routing table is effectively the navigation system of the Internet and without it, traffic would be unable to flow between its constituent networks. Unfortunately, routing equipment alone cannot distinguish between legitimate and malicious routing announcements,...
  • RIPE – Atlas Anchor February 17th, 2022
    We have become an even more integral part of the RIPE Atlas project by hosting an anchor, a device that allows for latency analysis of traffic between autonomous systems. Atlas anchors play an integral role in the RIPE Atlas network by acting both as enhanced RIPE Atlas probes with more measurement capacity, as well as regional measurement targets within the greater RIPE Atlas network. Anchors are able to perform many more measurements than a regular RIPE Atlas probe, and the large amount of data they collect is made available to everyone. In addition, anchors act as powerful targets that can...
  • MANRS June 20th, 2020
    GOLINE firmly believes in initiatives to protect networks, improve security and resilience of the global routing system. Therefore we decided to support the MANRS project and join as participants.Mutually Agreed Norms for Routing Security (MANRS) is a global initiative, supported by the Internet Society, that provides crucial fixes to reduce the most common routing threats. MANRS offers specific actions via four programs for Network Operators, Internet Exchange Points, CDN and Cloud Providers, and Equipment Vendors. Requirements for Participation Please read the full MANRS Actions document before applying. You can become a participant if you meet these requirements: You (or your company) support...

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:

/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



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


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


Restore a backup file.



Generate a backup file.





–list-modulesList the available modules on your server.

The output will resemble the following example:


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


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



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:

   status: 1
    statusmsg: Update TweakSettings Succeeded
      warnings: []
    status: 1
    statusmsg: "Whostmgr::Config::Restore::System::TweakSettings: ok"
0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x