Moving accounts from one server to another

Thunderchild

Well-Known Member
Jan 28, 2018
86
3
8
UK
cPanel Access Level
Root Administrator
Right as the manual is clear as mud could someone, maybe cPanel staff who have neglected to create more comprehensive documentation explain.

I have an old server and a new server. What do I do?
 

sysnishit

Active Member
Aug 13, 2018
25
4
3
Internet
cPanel Access Level
Root Administrator
Hello,

If you have shell access then do following.
Generate backup of account

cd /home
/scripts/pkgacct cpanelusername
it will generate backup file .

Now move file to new server
rsync -va /home/backup-file-name.tar.gz newserverip:/home/

on new server
cd /home
/script/restorepkg cpanelusername
This will restore account on new server.

If you want me to post script which will generate automatic backup of all accounts and after coping to remove server restore all accounts using script then let me know.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,274
1,291
313
Houston