WHM is the abbreviation of WebHost Manager. The name WHM may be unfamiliar to end users, but when it comes to CP panel (cPanel), everyone will understand that cPanel is the client and WHM is the management side of CP. Including panels used by super administrators and distributors. I haven’t really sat down to record anything since the year, and now I’ve decided to restart some series. The WHM data migration I’m going to record today will be divided into three sections, including the transfer of WHM to WHM and the transfer of WHM to DA. , DA transferred to WHM, etc.
Today we are sharing how to transfer WHM to WHM. This is also a relatively simple and common data migration. I still have to divide this section into two parts to explain. The first part assumes that you have root permissions on two servers.
We first log in to the WHM panel of the new server with the root account, select the menu Home »Transfers, there are multiple methods under the Transfers menu, including copying an account from another server, or transferring multiple accounts from another server, etc. Here we take Copy an Account From Another Server as an example, so that everyone can understand multiple accounts.
Wang Hongmei-Previous-01
As shown above, we fill in the remote server IP and SSH port, then test the SSH connection and confirm that it is OK. Next, set the account to be migrated (enter the account user name, migration of multiple accounts is similar, just select multiple options). At the bottom, select the root account and password of the remote server, and then start the migration.
Wang Hongmei-previous-02
Depending on the network speed and data volume, the migration time will vary slightly. If multiple accounts are migrated at the same time, it will take longer. Please do not close the browser page while the migration is in progress.
Next, we will complete the process of migrating ordinary users or reseller accounts to WHM.
Ordinary user accounts, or resellers, do not have root account permissions and cannot be migrated using the above method. We can use the backup and recovery function of the WHM background.
First, log in to the new server and create a new account, such as username backup (you can also use an existing account, but I will use the backup account as an example below).
In the second step, log in to the old cPanel panel, select File → Backup, and then click "Download or generate all backups".
Wang Hongmei-Previous-03
Select the backup address as the remote server, and set the remote server information (here we use the backup account we created on the new server in the previous step). After this process, all the files/databases/configuration information of the website Wait everything will be moved to the new console.
Then you can operate it on the new server. First, move the backup compressed package under the backup folder to the /home directory.

cd /home/backup
ls

Seeing a compressed file in tar format, the file name is the date and the user name of the original account, we move it to the home directory.

mv tar_file_name /home

OK, log in to the new server WHM panel with the root account, select the menu Home »Backup »Restore a Full Backup/cpmove File, and then as shown in the picture:
Wang Hongmei-Previous-04
In the bottom part of the picture, you can see For the name of the backup package you transferred, you can copy the username here, fill in Enter the username for the account you wish to restore, and finally click Restore to restore it.
To be honest, it is not troublesome to do this yourself. If you have root permissions on both sides, you can also directly copy and transfer the relevant data and database file directories to achieve the purpose of all transfers. What I wrote in this article is just the conventional one. The simplest visual migration method. However, cPanel officially has a migration department. If you really don’t want to do it yourself, you can also ask them to help. You only need to provide relevant information, and it’s free!


Hong Kong/United States/Domestic High Speed ​​VPS

postid
21227

Leave a Reply