Transfering a Huge cPanel Account from One to Another

laztrix

Active Member
Feb 7, 2012
31
0
56
cPanel Access Level
Website Owner
Hello Guys,

Just yesterday I've moved my sites, except one which is over 300 GB large, to another server. I’ve intentionally left the large one out and tried to transfer it separately. Both servers are obviously cPanel (WHM 11.40.1 to be precise) but the transfer got stuck or timed out using "Copy Multiple Accounts/Packages from another Server"

I’ve read threads here which are way too old, so my question is hove should I go about doing the transfer? Be aware I’m a noob and I need specifics :)

Thank You,

yavuz
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

You should package the account manually on the source server via:

Code:
/scripts/pkgacct $username
Next, upload the archive to the destination server via SCP or SFTP. You can then restore it on the destination server via:

Code:
/scripts/restorepkg $username
Note: Make sure you have sufficient free space on the source/destination server.

Thank you.
 

laztrix

Active Member
Feb 7, 2012
31
0
56
cPanel Access Level
Website Owner
After many hours the backup got created. I tried the SCP command but got this:

/home$ scp cpmove-user.tar.gz [email protected]:/home/user/public_html/folder/
Host key verification failed.
lost connection
 

feldon27

Well-Known Member
Mar 12, 2003
122
14
168
Houston, TX
Just open an FTP connection from one server to another and mput the file. Make sure you are in the correct directory on the local machine, then "ftp IPADDRESS" then issue "cd" and "ls" as necessary to get to the right directory and then "mput FILENAME" to push the file(s).

You'll probably need to issue the command "passive" to turn off PASV transfers.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
After many hours the backup got created. I tried the SCP command but got this:

/home$ scp cpmove-user.tar.gz [email protected]:/home/user/public_html/folder/
Host key verification failed.
lost connection
Ensure you use key authentication with SCP if you normally have to use a key with accessing the server as "root" via SSH.

Thank you.
 

texo

Well-Known Member
Mar 28, 2007
147
2
168
It will be easier to create a cpbackup like this:

/scripts/pkgacct --skiphomedir $username

once you've restored it, you can rsync the contents of public_html