Skip to main content

How to Migrate Directadmin to Eenos

Start migration from CpanelDirectadmin to Eenos

Some sample conversion commands and syntax are given below:

Convert a CpanelDirectadmin backup file to Eenos Backup file

You can convert a cpaneldirectadmin backup file to Eenos backup file. The cpaneldirectadmin  backup file must be a  .tar.zst, .tar or .tar.gz file.

This operation can be performed  from any server , there is no need for cpaneldirectadmin installed. You only need to cptoeenosinstall datoeenos tool.

Syntax:

cptoeenosdatoeenos --saveto /path-to-save-converted-backup --backupfile /path-to-cpanel-directadmin-account-backup-file

Where,

  • /path-to-save-converted-backup , is a folder name to save the converted backup files
  • /path-to-cpanel-directadmin-account-backup-file,  is the full path to cpanel backup file

Example:

We are going to convert a cpaneldirectadmin backup name backup-10.14.2023_16-20-05_mycpuser./home/user.sysvm.myuser.tar.gzzst  and store the converted backup into the folder /backup. The command is as follows:

cp2eenosda2eenos --saveto /backup --backupfile /home/backup-10.14.2023_16-20-05_mycpuser.user.sysvm.myuser.tar.gzzst

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 WHMDirectadmin Hosting Packages to Eenos Hosting Packages

The migration of whmDirectadmin hosting packages to Eenos hosting packages are easy.

You need to install cptoeenosdatoeenos in your CpanelDirectadmin server to perform this task.

Please use the following command to convert WHMdirectadmin hosting packages.

cptoeenosdatoeenos --savetos /backup --packagesp

This will convert all you hosting packages from whmcsdirectadmin 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/*

IfThis operation will convert  the WHMadmin packagehosting namepackages containsand whiteall spacesreseller orhosting dots,packages. itSo willonly be replaced with a hyphen in Eenos duringupload the packagerequired conversion.packages.

Convert CpanelDirectadmin Account to Eenos

You can convert a cpaneldirectadmin live account  into Eenos backup file.

You need to install cptoeenosdatoeenos in your CpanelDirectadmin server to perform this task.

Syntax:

cp2eenosda2eenos --saveto /backup --user cpusernamedausername

Where,

  • cpusernamedausername , is the cpanelDirectadmin  account user name

The above command will generate an Eenos compatible backup of the user cpusernamedausername and place it into the location /backup/eenosbkp-cpusername.dausername.tar.gz

You may upload this backup file to your Eenos server and restore it.

It is safe to install and use cptoeenosdatoeenos in your production CpanelDirectadmin 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 CpanelDirectadmin Server

You can convert  all cpaneldirectadmin accounts  and whm hosting packages from your cpaneldirectadmin server  with a simple command.

Syntax:

cp2eenosda2eenos --saveto /backup  --full

This command will perform the following actions:

  • Convert all cpaneldirectadmin accounts and place it into the folder /backup
  • Convert all whmdirectadmin 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

cp2eenosda2eenos --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 tointo 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.

This script will be provide with one command line argument which is the  backup save path.

Example : 

Convert the whole cpaneldirectadmin  accounts and WHMhosting packages then upload to a remove server using my post upload script /root/postupload.sh

cp2eenosda2eenos --saveto /backup  --full --demon --postupload /root/postupload.sh

Here the conversion process will run in the sever background and execute the post upload script soon after finishing the cpaneldirectamind account conversion process. 

CptoEenosdatoEenos Log Files

All conversion task will be logged to the file /var/log/cptoeenos.datoeenos.log  

For non-root users the log file will be  : $HOME/cptoeenos.datoeenos.log