How to Migrate Cpanel to Eenos
Start migration from Cpanel to Eenos
Some sample conversion commands and syntax are given below:
Convert a Cpanel backup file to Eenos Backup file
You can convert a cpanel backup file to Eenos backup file. The cpanel backup file must be a .tar or .tar.gz file.
This operation can be performed from any server , there is no need for cpanel installed. You only need to cptoeenos tool.
Syntax:
cptoeenos --saveto /path-to-save-converted-backup --backupfile /path-to-cpanel-account-backup-file
Where,
- /path-to-save-converted-backup , is a folder name to save the converted backup files
- /path-to-cpanel-account-backup-file, is the full path to cpanel backup file
Example:
We are going to convert a cpanel backup name backup-10.14.2023_16-20-05_mycpuser.tar.gz and store the converted backup into the folder /backup. The command is as follows:
cp2eenos --saveto /backup --backupfile /home/backup-10.14.2023_16-20-05_mycpuser.tar.gz
This will generate a backup on /backup/eenosbkp-myuser.tar.gz . You may upload this backup file to your Eenos server and restore it.
To know how to restore a backup in Eenos Control Panel , please check he restoration documentation.
Convert WHM Hosting Packages to Eenos Hosting Packages
The migration of whm hosting packages to Eenos hosting packages are easy.
You need to install cptoeenos in your Cpanel server to perform this task.
Please use the following command to convert WHM hosting packages.
cptoeenos --saveto /backup --packages
This will convert all you hosting packages from whmcs server and place it into a folder name EenosHostingPackages inside your save path .
Here the converted package location will be in /backup/EenosHostingPackages
You may now copy or upload all .yaml files from this folder into /var/eenos/packages/ of your Eenos server
Please make sure to change ownership of all files inside /var/eenos/packages/ will have the eenos user ownerships
chown eenos:eenos /var/eenos/packages/*
If the WHM package name contains white spaces or dots, it will be replaced with a hyphen in Eenos during the package conversion.
Convert Cpanel Account
You can convert a cpanel live account into Eenos backup file.
You need to install cptoeenos in your Cpanel server to perform this task.
Syntax:
cp2eenos --saveto /backup --user cpusername
Where,
- cpusername , is the cpanel account user name
The above command will generate an Eenos compatible backup of the user cpusername and place it into the location /backup/eenosbkp-cpusername.tar.gz
You may upload this backup file to your Eenos server and restore it.
It is safe to install and use cptoeenos in your production Cpanel server. This tool doesn't make changes on server data or file. It will only copy the required data to the chosen destination. So it is always safe to use the tool in your production servers.
Convert the Whole Cpanel Server
You can convert all cpanel accounts and whm hosting packages from your cpanel server with a simple command.
Syntax:
cp2eenos --saveto /backup --full
This command will perform the following actions:
- Convert all cpanel accounts and place it into the folder /backup
- Convert all whm hosting packages and place it into the folder /backup/EenosHostingPackages
Running Conversion in Server Background
You can run any conversion command in server backup ground using the flag --demon or -d
Example : Run the full server conversion in server background
cp2eenos --saveto /backup --full --demon
Automatic upload of converted backups into remote server
You can attach a post upload script for the conversion process, so that your script will be executed after the backup conversion. This will help you to run automatic upload of converted backups to your remote Eenos server.
To run a post upload script , you may use the flag --postupload path_to_script or -pu path_to_script
where,
- path_to_script , is the your automation script , please make sure this script have execute permission.