Backup WHM Configuration (The cpconftool Script)

cPSamuelM

Technical Analyst Team Lead
Staff member
Nov 20, 2019
196
38
103
USA
cPanel Access Level
Root Administrator
Hello @ImperialTrader,

There is no such module called configuration::to::backup. It is simply a placeholder in the tutorial on the documentation page. If you want to backup the WHM configuration, you would use the cpanel::system::whmconf module, for example:

Code:
[[email protected] ~]# /usr/local/cpanel/bin/cpconftool --backup --modules=cpanel::system::whmconf
Backup Successful
/home/whm-config-backup-cpanel__system__whmconf-11.84.0.10-1577840157.tar.gz
Please let us know if you have any questions.

Best regards
 
  • Like
Reactions: ImperialTrader

ImperialTrader

Well-Known Member
Aug 31, 2014
174
20
68
Egypt
cPanel Access Level
Root Administrator
Hello @ImperialTrader,

There is no such module called configuration::to::backup. It is simply a placeholder in the tutorial on the documentation page. If you want to backup the WHM configuration, you would use the cpanel::system::whmconf module, for example:

Code:
[[email protected] ~]# /usr/local/cpanel/bin/cpconftool --backup --modules=cpanel::system::whmconf
Backup Successful
/home/whm-config-backup-cpanel__system__whmconf-11.84.0.10-1577840157.tar.gz
Please let us know if you have any questions.

Best regards
Ohh okay..
Thank you :)
 
Last edited:
  • Like
Reactions: cPSamuelM

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
@cPSamuel
How can I backup and restore to other server the "Packages"?
Do you mean hosting packages? if so, you can use the transfer tool to tranport the packages to the new server and the same can be used to transfer the account as well.
 
  • Like
Reactions: ImperialTrader

quietFinn

Well-Known Member
Feb 4, 2006
1,327
141
193
Finland
cPanel Access Level
Root Administrator
Yea I mean hosting packages, but I don't want to transfer the accounts, I just need to to copy the hosting packages only!
You can copy only the packages with the transfer tool. Just select the packages and no accounts.
 
  • Like
Reactions: ImperialTrader

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
631
207
343
cPanel Access Level
DataCenter Provider
As others have said, you can use the transfer system or you can simply use sftp to transfer them between servers. they are in /var/cpanel/packages and are simply text files.
 
  • Like
Reactions: ImperialTrader