A complete guide on cpanel account transfer from one server to another

Started on the old forum in November 2012 · view the original in the archive · old links redirect here

#9xhost #cpanel #how-to-transfer-accounts

No replies · 597 views · started 14 years ago · 2 min read

Sanju Kr Developer · 104 posts #1

Today i will describe how to transfer CPanel accounts from one server to another. Lets consider we have two servers A and B. Server A is the old server with two accounts and Server B is new server to which we will transfer accounts.

Server A = 192.168.0.1

Server B = 172.20.0.1

We will Transfer using Shell (Command Line) SSH your Server A using putty from windows and command line from linux.

ssh 192.168.0.1

Now first of all we will create full backup to transfer and all the backups created are placed under /home directory. 1.1 Create One Account Backup If you wish to backup single account, then execute following command

/scripts/pkgacct cpaneluser

you will find corresponding backup in /home directory named cpmove-cpaneluser*.tar.gz

1.2 Create all Accounts Backup To create all accounts backup on your server, execute following command

for i in `ls /var/cpanel/users`;do /scripts/pkgacct $i ; done

again you will find all accounts backup under /home named cpmove-cpaneluser*.tar.gz

1.3 SCP Backups to New Server After creating backup you have to transfer all accounts backup to your new server i.e Server B using SCP.

scp cpmove-* root@172.120.0.1:/home

Besure all backups should move to /home directory of new server.

If you have done all accounts backup then you should have to move /var/cpanel/users file for restore on new server i.e Server B in /home directory with name user.txt

scp /var/cpanel/users root@172.120.0.1:/home/user.txt

1.4 Restore Backup To restore single account backup execute following command.

/scripts/restorepkg cpaneluser

where cpaneluser is of old server and can be found on backup filename after cpmove. i.e

cpmove-cpaneluser*.tar.gz

To restore all accounts

for i in `ls /var/cpanel/users`;do /scripts/restorepkg $i ; done

Now you can List Account in WHM to see all accounts are transferred successfully to your new server and you can login to cpanel accounts of user using same Cpanel user / pass as old server.

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close