Avatar of dwkd
dwkd
Flag for United States of America asked on

How do I migrate everything from one cPanel to another

I have two servers which are almost identical in the fact that they both run linux, apache, cpanel with whm
I was wondering how do I go about copying everything in the old cpanel whm to the new one ( accounts,databases,passwords,emails etc) while keeping everything intact. I'm trying to make it a seamless transition, any advices on any type of mergeing software or any option WHM or cpanel might have?

Thx
LinuxApache Web Server

Avatar of undefined
Last Comment
dwkd

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
RedLondon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Linux Guru

Hey..

If you have root access, just do the following.

Run the following command to backup the accounts one by one.

1. Login to server via SSH.

/scripts/pkgacct username

This will backup all files to a tar file and the location will be displayed once the backup is completed. You now need to copy this file to the new server.

2. You can use scp command to copy the backup file to new server.

scp /home/backup.tar root@newserver.com:/home

3. Run the following command to restore the account on new server.

/scripts/restorepkg username

Thats all. cPanel will restore all the files including the emails, files, databases to the new server.

Cheers !!!
dwkd

ASKER
thanks I'll try one account RedLondon
@testez your suggestion sounds a rather quick
Since I'm not a linux guru, what I understand from what you said is that I go and package everything that the "root" user has on the old server and transfer it to the new server.
If I that is the case than won't this overwrite cpanel settings, php settings and other settings that I have on the new server?  I just want to transfer accounts:files,db,emails,ftp on the new server

I appreciate you guys' help

Alex
SOLUTION
Linux Guru

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
dwkd

ASKER
thank you everybody
Your help has saved me hundreds of hours of internet surfing.
fblack61