How to Transfer cPanel Account

You can be  able to transfer accounts from your old server to this via WHM as follows. To work this properly you should able to SSH from this sever to the old server without any issue.

WHM login >> Main >> Transfers >> Copy multiple accounts/packages from another server

Here you need to provide the old server IP, SSH port, and root password.

If the above method fails you can transfer accounts manually as follows.

1. Take backup of the accounts using the following script: ( in source server)

# /scripts/pkgacct

This will create a backup file under /home with name cpmove-.tar.gz

2. Copy(use scp) this file into the target server: (say xx.xx.xx.xx)
#scp your-tar-filename root@newserverip:/home
It will ask the password of destination server

eg.
# scp cpmove-.tar.gz root@xx.xx.xx.xx:/home

3. Restore accounts using the following script:

# /scripts/restorepkg



******************************************************************

Scp command with port : Sometimes server needs a port for scp

#scp -p(portno) old-serverip:/home/tar-filename current-file

eg.
home#scp -P22 00.00.00.00:/home/cpmove-user.tar.gz ./

0 comments:

Post a Comment