How Do I Transfer/Migrate An Account Using cpmove?
You can transfer/migrate an account using cpmove by performing the following steps:
- Connect to the old server via an SSH terminal
- Run this command with cpanelusername being the username that you want to package and move
/scripts/pkgacct cpanelusername
- An FTP or SFTP client can be used to perform the transfer, or you can choose to do it with rsync from SSH via the following command
rsync -vrplogDtH -e “ssh -p PORT#DESTSERVER” /home/cpmove-CPANELUSERNAME.tar.gz root@TARGETIP:/home/cpmove-CPANELUSERNAME.tar.gz
PORT#DESTSERVER
– use the port number 22 or your custom port number
CPANELUSERNAME
should be your cPanel username for your account and is normally in all lowercase
TARGETIP - IP
of the server you’re moving to
After transferring, connect the destination server with an SSH terminal then run the following for each one of the accounts you wish to restore on the new server.
/scripts/restorepkg CPANELUSERNAME
The filename of the backup must use one of the following formats:cpmove-{USER}
cpmove-{USER}.tar
cpmove-{USER}.tar.gz
{USER}.tar
{USER}.tar.gz
backup-{BACKUP-DATE_TIME}_{USER}.tar
backup-{BACKUP-DATE_TIME}_{USER}.tar.gz
In order for this feature to work, the backup or cpmove file must reside in one of the following directories:
CPANELUSERNAME
should be the cPanel username for your account and the account should not exist already. This is normally in all lowercase
Helpful Related Articles
- Hostwinds Migration Policy
- Transfer Email Accounts Between cPanel Servers
- How To Migrate Accounts From Another Non cPanel Environment
- What Is The Migration Process (Hostwinds)