Cpanel To Directadmin Migration(with root access): Print

  • 0

Cpanel To Directadmin Migration(with root access):

Client Query:

==============================================================================================

To transfer the Cpanel account to Directadmin Server.

==============================================================================================


SOLUTION:

1) First make sure that the migration domain in the server is active in WHMCS.

 

2) Creating a cPanel Backup of the user via SSH

To create a backup of your individual cPanel account using SSH, just follow these steps:

(i). First, log in to SSH as the root user.

(ii). Check the domain's usage with the following command.

        # du -sch /home/username

 

3. Next, enter the following command string on the command line interface:

      # /scripts/pkgacct <username> /home/user_backups;

 

4 A backup of your account will be created and stored in the directory you are currently in.


5. Transfer the Cpanel account from the source server (Cpanel server) to the destination server (Directadmin Server) using the below command.

   rsync -zavh --progress -e "ssh -p 2322" <file-name with path> remote_user@remote_host_or_ip:/home/admin/admin_backups/

Example:

   #rsync -zavh --progress -e "ssh -p 22" /usr/local/src/test1/cpmove* root@65.21.120.107:/home/admin/admin_backups/.

 

6. Once the backup file is restored then login into the Destination server (Directadmin server) via ssh.

(i) Change the ownership to admin for the restored backup file from the Cpanel server.

     chown -R admin. /home/admin/admin_backups/<filename>

(ii) Login into the Direct adminpanel(Front End).

 

(iii) Look into the Admin tools option in the direct admin panel and select admin backup/transfer.

 

(iv) Rirectired to Admin backup page then click restore option.

 

(v) Then next step is to select the path of the backup file (/home/admin/admin_backups/<backup file>)

 

(vi) Select the backup file and click the restore option.

 

7. After the restoration process has been completed. Set the ownership and permission properly.

 

8. Check the domain with the local host entry.

==============================================================================================

- KANAGARAJ.B. (JUNIOR SYSTEM ENGINEER)


Was this answer helpful?

« Back