Hi All,
We can copy the accounts from Plesk, DirectAdmin or Ensim by using WHM feature Copy Accounts from Another Server option listed in WHM. We can manually migrate the accounts from the above mentioned control panels by following methods by Populating
/etc/trueuserdomains on the source server, Creating a package of an account into a single file,Copy the packaged account to the destination Panel server, Restore the account on the cPanel server
Initially download the scripts that build the list of accounts at /etc/trueuserdomains
# wget http://httpupdate.cpanel.net/cpanelsync/transfers_DEVEL/pkgacct/updateuserdomains-universalDownload the particular control panel script to populate the user accounts
For Directadmin download the script from
# wget http://httpupdate.cpanel.net/cpanelsync/transfers_DEVEL/pkgacct/pkgacct-daFor Plesk download the script from
# wget http://httpupdate.cpanel.net/cpanelsync/transfers_DEVEL/pkgacct/pkgacct-pXaFor Ensim, download the script from
# wget http://httpupdate.cpanel.net/cpanelsync/transfers_DEVEL/pkgacct/pkgacct-enXim Make the download packages executable by
# chmod +x updateuserdomains-universal
# chmod +x pkgacct-* Execute the updateuserdomain script by
# ./updateuserdomains-universal To package an account in Directadmin we can use the script as follows consider the account name be mohi
./pkgacct-da mohi This will create a package named /home/cpmove-mohi.tar.gz
Then move this file to the destination server by
# scp /home/cpmove-mohi.tar.gz root@x.x.x.x:/home On the destination server run the screen command to not interupt the shell prompt
so follow the simple steps below to restore the account
# cd /home
# /scripts/restorepkg cpmove-mohi.tar.gz That's it