Copy cPanel Server configuration | GOLINE
Goline Logo

FAQ

News

  • 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 became an MSP Partner of PowerDMARC, 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. GOLINE SA's clients experienced tangible benefits: Enhanced Email Security: Automated protocols...
  • 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.https://atlas.ripe.net/probes/7073/RIPE 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...

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-modulesList 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
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x