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?
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.
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
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.
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 !!!