Migrate your cPanel Accounts via WHM

To begin this process, you will need to log into your server as the root user.  There are several cpanel account transfer process methods for transferring the compressed backups we have created.

WHM >> Transfers>> Copy an Account From Another Server

The cPanel Transfer Utility currently supports:
WHM 4.5+
Pre WHM 4.5
Pl*sk
EnXim 3.x and 4.x
D1rectAdm1n
Alab*anza

Complete all the entries and click transfer button.

Another method available to transfer account with an account password.

WHM >> Transfers >> Copy an Account From Another Server With an Account Password

Copy Multiple Accounts and Packages From Another Server

WHM >> Transfers >> Copy Multiple Accounts/Packages from Another Server

Complete Remote Server Information and click fetch account list button. You can select list of account which need to transfer and click copy accounts.

It will take long time process to complete all the account transfer.

Account transfer via Cpanel

If you are moving from a host cPanel account to another cPanel account, please follow these instructions:

Login to your cPanel and click the “Backup” icon.
Click the “Download or Generate a Full Backup” button. This will backup all of your email accounts, files, and MySQL databases.
Leave the drop down on Home Directory and be sure to have a valid email address in the second box. Leave the remaining boxes empty.
Click the “Generate Backup” button and wait for an email confirmation to arrive.

Once backup process completed, Transfer backup file to new server via FTP or get the backup file from NEW server using FTP.

[email protected][~]#ftp <old cpanel server ip>

login using ftp user and password.

download backup file through get option.

ftp>get backup-3.4.2011_23-46-32_oldcpuser.tar.gz

once download completed, move backup file to /home folder and run this restore command.

[email protected][~]#/scripts/restorepkg oldcpuser

Thants all, account will be restored.

Cpanel account transfer via server SSH to server

Login your Old server SSH via root user and use these commands.

[email protected][~]#cd /home
[email protected][~]#/scripts/pkgacct <cpuser>

Once package account process completed, You can view backup file like cpmove-cpuser.tar.gz

Transfer account to another NEW server using RSYNC or SCP commands.

[email protected][~]#rsync -avz –progress /home/cpmove-cpuser.tar.gz  [email protected]<newserverip>:/home

User this command if your server have different SSH port.

[email protected][~]#rsync –progress –stats -avz –rsh=’ssh -p5093′ cpmove-user.tar.gz  [email protected]<newserverip>:/home/

Once transfer completed goto NEW server SSH and restore account.

[email protected][~]#/scripts/restorepkg oldcpuser

Thats all !!!

Transfer Large size of cpanel account to remote server

Mostly it will be best doing via screen.

Login your old server via root user and goto your home folder. This command will skip on your account home directory (public_html) and compress all other files include database, emails,etc.,

[email protected][~]#/scripts/pkgacct <cpuser>–skiphomedir

Once backup completed transfer backup file to your remote server and restore vis /scripts/restorepkg <cpuser>. Once these process completed rsync public_html folder from OLD server to NEW server

[email protected][~]#rsync -avz –progress /home/cpuser/public_html  [email protected]<newserverip>:/home/cpuser

Thants all!!

Restoring an Existent Account Tip

[email protected] [~]# /scripts/restorepkg anyuser
Sorry, the user anyuser already exists on this system. If you really want to
do this run /scripts/restorepkg –force anyuser

Simply run these command

/scripts/restorepkg — force anyuser
OR
/scripts/killacct $username
/scripts/restorepkg $username

Other control panel Transfer

Pl*sk to cPanel

>>/scripts/pkgacct-pXa
>>/usr/local/plesk/admin/conf/admin.conf
>>/var/qmail/mailnames
>>/usr/local/psa/qmail/mailnames
>>/usr/local/plesk/qmail/mailnames
>>/usr/local/psa/mysql/var

EnXim to cPanel

>>/scripts/pkgacct-enXim
>>/home/virtual/site#
>>/home/virtual/site#/fst
>>/home/virtual/site1/fst/var/www
>>/var/lib/mysql
>>/$sitedir
>>/home/virtual/site#/fst/var/spool

DA to cPanel

>>/scripts/pkgacct-da
>>/usr/local/directadmin/conf/mysql.conf
>>/etc/virtual
>>/usr/local/directadmin/data/users/$user
>>/usr/local/directadmin/data/users/$user/domains/
>>/etc/virtual/$domain/aliases

OTHER to cPanel

>>/scripts/pkgacct-ala
>>/etc/mail/mailertable
>>/usr/local/mysql/data
>>/scripts/pkgcct-dXm
>>/etc/dsm.domainmap
>>/var/db/dsm/conf/domainmap

Shell script to backup all accounts
!#/bin/bash
for i in `ls /var/cpanel/users`
do
/scripts/pkgacct $i
done

Restore all accounts

Move cpbackups to /home folder and user list in /root/userlist which need to restore.

!#/bin/bash
for i in `cat /root/userlist`
do
/scripts/restorepkg $i
done
5.00 avg. rating (94% score) - 1 vote
Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive