Skip to main content

How to Migrate Directadmin to Eenos

Start migration from Directadmin to Eenos

Some sample conversion commands and syntax are given below:

Convert a Directadmin backup file to an Eenos Backup file

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

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

Syntax:

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

Where,

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

Example:

WeIf we are going to convert a directadminDirectAdmin backup name /home/user.sysvm.myuser.tar.zst  and store the converted backup into the folder /backup. The command is as follows:

da2eenos --saveto /backup --backupfile /home/user.sysvm.myuser.tar.zst

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 the Eenos Control Panel ,Panel, please check hethe restoration documentation.

Convert Directadmin Hosting Packages to Eenos Hosting Packages

The migration of DirectadminDirectAdmin hosting packages to Eenos hosting packages areis easy.

You need to install datoeenos in your DirectadminDirectAdmin server to perform this task.

Please use the following command to convert directadminDirectAdmin hosting packages.

datoeenos -s /backup -p

This will convert all youyour hosting packages from directadminthe DirectAdmin server and place itthem into a folder namenamed EenosHostingPackages inside your savesaved path .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 ownershipsownership

chown eenos:eenos /var/eenos/packages/*

This operation will convert  the admin hosting packages and all reseller hosting packages. So only upload the required packages.

Convert Directadmin Account to Eenos

You can convert a directadminDirectAdmin live account into intoan Eenos backup file.

You need to install datoeenos in your DirectadminDirectAdmin server to perform this task.

Syntax:

da2eenos --saveto /backup --user dausername

Where,

  • dausername , is the DirectadminDirectAdmin  account user nameusername

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

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

It is safe to install and use datoeenos in your production Directadmin server. This  tool doesn't make changes onto server data or file.files. 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 Directadmin Server

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

Syntax:

da2eenos --saveto /backup  --full

This command will perform the following actions:

  • Convert all directadmin accounts and place itthem into the folder /backup
  • Convert all directadmin hosting packages and place itthem into the folder /backup/EenosHostingPackages

Running Conversion in Server Background

You can run any conversion command in the server backup ground using the flag --demon or -d

Example : Run the full server conversion in the server background

da2eenos --saveto /backup  --full --demon
Automatic upload of converted backups into a remote server

You can attach a post post-upload script for the conversion process,process so that your script will be executed after the backup conversion. This will help you to run automatic upload of converted backups into your remote  Eenos server.

To run a post post-upload script ,script, you may use the  flag --postupload path_to_script or -pu path_to_script

where,

  • path_to_script , is the your automation script ,script, please make sure this script havehas execute permission.

This script will be provideprovided with one command line argument which is the  backup savesaved path.

Example : 

Convert the whole directadmin  accounts and hosting packages then upload to a removeremote server using my post upload script /root/postupload.sh

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

HereHere, the conversion process will run in the severserver background and execute the post post-upload script soon after finishing the directamindDirectAdmin account conversion process. 

datoEenos Log Files

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

For non-root usersusers, the log file will be  :be: $HOME/datoeenos.log