Most likely, your web host has hiked their prices, or worse still is shutting down all of its machines altogether! Don’t let yourself fall into shock. All of your data is automatically backed up and restored for you. Without any downtime, the cPanel administrative interface makes it easy to move your website to another cPanel hosting provider.
Preparing for the Migration
Consider how big your website will be before you begin. Both email accounts and all databases should be checked for size. In order to expedite the migrating process, you may choose to remove or archive old emails before starting the migration. Backup your database(s) and email account(s) as zip files and store them somewhere with plenty of free space (s). Computers are often adequate for many tasks.. A big website with several databases may need the use of other methods.
When migrating a cPanel account, you have two choices. As long as your new server has root access and WHM access, you may utilise option 1 to move your cPanel installation. This is also an option if your new host would restore the whole backup for you.
If you don’t have access to WHM, then you must use option 2, which is a manual file restoration.
Option 1: Migrating A cPanel Account Automatically
- Step 1: Create A Full cPanel Backup
To generate a complete account backup, click the Backups button:
To obtain a copy of your account, click the blue icon.
- Step 2: Save the Backup to your PC.
Once the backup is complete, you may download it to your computer:
- Step 3: Restore the Full Account Backup in this step.
Open WHM and restore the whole backup file from the Backups menu:
Option 2: Migrating a cPanel account manually is the second option
- Step 1: Backup Your Database
Go to the Backup Wizard on your existing cPanel dashboard. On this screen, you may choose whether you want a Full or Partial backup. To obtain a backup of a specific MySQL database, go to Partial Backup, then MySQL Databases. Save the file where you want it.
- Step 2: Backup Your Files
Check out this page: https://backup-wizard.cPanel/ Select “Full Backup” from the drop-down menu. It’s possible to choose from a variety of backup destinations under Backup Destination. A remote FTP Server is the simplest method of moving a cPanel-hosted website to another cPanel-hosted website. For a remote FTP server, you’ll need the IP address, username, password, port number, and remote directory name.
Your new cPanel hosting account’s IP address is what you’ll utilise. This is one of the main things that your hosting company should be able to help you with. Your new cPanel account username and password will be used. Anywhere on your new cPanel website may be used as long as the port number is set to 21. /public html should be included in a cPanel site’s root directory. If you want to be notified by email after the backup is complete, you may do so by providing an email address.
As soon as the Full Backup is complete, you’ll receive a notification on the screen saying so. This means that cPanel was able to locate your new IP address and that you were able to log in. A few minutes to a few hours may be required depending on the size of your website’s files.
Step 3: Backup Your email Directories
Select File Manager from the cPanel administrative main page. You’ll find a file structure tree on the left-hand side of the screen. The Home directory may be accessed by selecting it from the File menu. Open the domain folder of the email account you want to move to the Home folder. Repetition of this process is required if you are moving more than one email account. Select the Cur folder, the New folder, and the maildirsize file using a Ctrl-Click. Compress your selection by selecting it in the context menu of the right-click menu. The sort of compression you choose will be presented to you as an option. For the sake of this guide, we’ll be working with a Zip Archive. Cur.zip will be created in that folder as a result of this. Use the right mouse button to right-click Cur.zip and save it to your computer.
- Step 4: Import Files on New cPanel Site
The File Manager may be found in your new cPanel account. cPanel themes vary from one host to the next, but you should still be able to access the same icons and settings on both. To restore your previous cPanel site’s full backup, go to the location you specified in the File Manager. We’ll use /public html in this case. Keep doing nothing until you get an email from the old cPanel site letting you know that the backup is complete, or until the size of your zip file stops expanding.
Make sure you right-click it and choose extract. The zip file’s name should include the date and time it was created. The size of the zip file has an impact on how long it takes to extract. Drag the whole folder to your home directory. The backup zip file should be moved to a separate subdirectory from the public html directory. Finally, the backup zip in the public html directory may be removed from the server.
Locate the home dir folder in the backup directory. Open it and select all the files. Drag the files to the root of your home directory. This will replace the default web page files with those from your own site.
- Step 5: Restore Database
Select the Backup Wizard from the cPanel administrative home. To restore a database, choose Restore Database and choose the place where you stored your database backup in Step 1. There is no need to extract or relocate files in this phase since the Backup Wizard will do it for you.
- Step 6: Restore email
Each email account that has to be migrated will need two steps to be restored. For each email account, you’ll need to set up an email account and then restore the data. This process may be repeated as required.
Creating an email account for your new cPanel site will need you to match your previous cPanel email account. Both must have the same e-mail address and password. Email Accounts may be found in the cPanel management area. Enter your current email address, domain, and password in the Add Email Account box. Create an account.
Return to the cPanel administrative home page and pick the File Manager to migrate email files. After establishing a new email account, we’ll discover the folder you just made. To begin your search, click on the Home icon in the tree on the left side of the screen. Select Mail from the Home menu, followed by the domain you picked earlier. Overwrite old files and drag and drop your Cur.zip file into the Upload interface are two options for uploading your zip file. Right-click the Cur.zip file and choose “Extract.”
It may take up to 24 hours for the DNS record to be updated to refer to your new server.
Your website has now been successfully transferred! You should be able to verify this by accessing your email and seeing the website on the new host. Installing SSL certificates on your new cPanel site is a must if your website makes use of them.