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.
2. Change the ownership of these folders to admin using the following:
3. Download the cPanel to DirectAdmin migration script by:
and changed the ownership of the script to diradmin user using following command
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:
and check whether the converted backup file ownership is set to admin using the following command:
If it's set to root then change it to admin using below command:
Once done, then go to the DirectAdmin panel interface >> Admin Tools >> and select Admin Backup/Transfer from the dropdown:
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,
then click Next and select the IP address you wish to set for this account on DirectAdmin Server.
and then click Next and select the tar file of the account you wish to restore
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
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]
Code:
[B]chown admin.admin /home/admin/cPanel_backups[/B] [B]chown admin.admin /home/admin/converted_user_backup[/B]
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]
Code:
[B]chown diradmin.diradmin /usr/local/directadmin/scripts/cpanel_to_da -R [/B]
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]
Code:
[B]ll /home/admin/converted_user_backup/cpmove-linuxlearn.tar.gz[/B]
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:
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,
then click Next and select the IP address you wish to set for this account on DirectAdmin Server.
and then click Next and select the tar file of the account you wish to restore
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
Comment