How to move an account from one Cpanel server to another Cpanel server via Backend (Shell)

Basic steps

1. Create a .tar file (backup) of the account in the old server.
2. Copy it to the new server using scp.
3. Untar (restore) in the new server.

1. Create a .tar file (backup) of the account in the old server.

To create a tar package of the account you have a Cpanel script.

/scripts/pkgacct ‘username’

Executing this script will create a username.tar.gz file in your /home directory. You can copy this to the new server.

2. Copy it to the new server using SCP

scp user@IP:/home/username.tar.gz user@IP:/home/

3. Untar (restore) in the new server

Login to the new server using ssh and execute the script.

$ cd /home ; /scripts/restorepkg ‘username’

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.