Collapse

Announcement

Collapse
No announcement yet.

Cpanel to DirectAdmin Migration Steps

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cpanel to DirectAdmin Migration Steps

    Simple steps to migrate the accounts from cPanel to DirectAdmin server using the migration script.

    1. Create the following three directories on the DirectAdmin server using these commands.

    Code:
    mkdir /home/admin/cPanel_backup
    mkdir /home/admin/converted_user_backup
    mkdir /usr/local/directadmin/scripts/cpanel_to_da
    2. Change the ownership of these folders to admin using the following:

    Code:
    chown admin.admin /home/admin/cPanel_backups
    chown admin.admin /home/admin/converted_user_backup
    3. Download the cPanel to DirectAdmin migration script by:

    Code:
    wget -O /usr/local/directadmin/scripts/cpanel_to_da/cpanel_to_da.sh https://custombuild.eu/cpanel/cpanel_to_da.sh.0.0.26
    and changed the ownership of the script to diradmin user using following command

    Code:
    chown diradmin.diradmin /usr/local/directadmin/scripts/cpanel_to_da -R 
    4. Download the full cPanel backup file on the Directadmin server at /home/admin/cPanel_backup location.

    Once this is done, then use following command to convert the cPanel backup file to directadmin user backup file:

    Code:
    /usr/local/directadmin/scripts/cpanel_to_da/cpanel_to_da.sh /home/admin/cPanel_backups/cpmove-linuxlearn.tar.gz /home/admin/converted_user_backup
    and check whether the converted backup file ownership is set to admin using the following command:

    Code:
    ll /home/admin/converted_user_backup/cpmove-linuxlearn.tar.gz
    If it's set to root then change it to admin using below command:

    Code:
    chown admin.admin /home/admin/converted_user_backup/cpmove-linuxlearn.tar.gz

    Once done, then go to the DirectAdmin panel interface >> Admin Tools >> and select Admin Backup/Transfer from the dropdown:



    Click image for larger version  Name:	DD1.png Views:	1 Size:	87.0 KB ID:	853



    then click on restore tab, and put the correct path of the converted backup folder and don't put / at the end of the path,


    Click image for larger version  Name:	DD2.png Views:	1 Size:	85.3 KB ID:	854



    then click Next and select the IP address you wish to set for this account on DirectAdmin Server.

    Click image for larger version  Name:	DD3.png Views:	1 Size:	134.0 KB ID:	855


    and then click Next and select the tar file of the account you wish to restore


    Click image for larger version  Name:	DD4.png Views:	1 Size:	86.2 KB ID:	856



    And lastly, click on Restore tab, so the restoration will be added to Queue.

    Wait for a few minutes and you will get the notification via the Message System when the process is complete.


    Credits: https://forum.directadmin.com/showth...=58059&page=11
    Last edited by santosh; 08-15-2019, 01:09 PM.

  • #2
    Great Post , Thanks Santosh.

    Comment

    Working...
    X