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:
    [B]mkdir /home/admin/cPanel_backup
    mkdir /home/admin/converted_user_backup
    mkdir /usr/local/directadmin/scripts/cpanel_to_da[/B]
    2. Change the ownership of these folders to admin using the following:

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

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

    Code:
    [B]chown diradmin.diradmin /usr/local/directadmin/scripts/cpanel_to_da -R [/B]
    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:
    [B]/usr/local/directadmin/scripts/cpanel_to_da/cpanel_to_[/B][URL="http://da.sh/"][B][U]da.sh[/U][/B][/URL][B] /home/admin/cPanel_backups/cpmove-[/B][B]linuxlearn[/B][B].tar.gz /home/admin/converted_user_backup[/B]
    and check whether the converted backup file ownership is set to admin using the following command:

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

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

    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


    • #3
      Or You can do it manually:

      https://www.webhosting1st.com/clientarea/plugin/support_manager/knowledgebase/view/36/how-to-migrate-account-files-databases-or-emails/1/

      Comment

      Working...
      X