For reasons such as performance, stability, security, and cost, you may choose to migrate your website from another provider to Alibaba Cloud Web Hosting. The Website Migration feature allows you to quickly move your site to a Web Hosting instance. This topic shows you how to migrate a website by using a Dedicated Web Hosting (Advanced) instance that runs a Linux operating system.
Prerequisites
Prepare the data required for your migration type:
|
Migration type |
Description |
|
Database file migration |
Upload the database backup file to the web root directory of the destination Web Hosting instance. For more information, see Import a database file.
|
|
Website file migration |
Upload the website backup file to the web root directory of the destination Web Hosting instance. For more information, see Upload or download website program files.
|
Limitations
-
Task execution limits
-
You cannot perform backup, restoration, and migration operations simultaneously on a Web Hosting instance. If you do, the operation fails.
-
You cannot run multiple migration tasks simultaneously on a Web Hosting instance. If you create multiple tasks, they are queued and executed one by one.
-
A single migration task can run for a maximum of one hour. If the data volume is too large, the task times out and fails.
-
-
Database version limits
-
For Website Migration, Web Hosting only supports backup files from MySQL 4.0, MySQL 5.0, MySQL 5.1, and MySQL 5.7 databases.
-
For Website Migration, Web Hosting only supports backup files from SQL Server 2008 databases.
-
Procedure
Before you start the migration, back up the database files and website files on the destination Web Hosting instance. The database migration process erases all data in the destination database. To preserve this data, create a backup before you proceed.
- Log on to the Cloud Web Hosting management page.
- Find the Cloud Web Hosting instance you want to manage and click Manage in the Actions column.
-
In the , choose Tools > Website Migration.
-
On the Website Migration page, click Create Migration Task.
-
On the Database Migration Settings page, configure the database migration settings.
-
Click Browse next to Database file.
-
In the File directory dialog box, select the database backup file that you uploaded to the web root directory and click OK.
-
From the Destination database drop-down list, select the database of the destination Web Hosting instance.
-
Click Next.
-
-
On the Website file migration settings page, configure the website file migration settings.
-
Click Browse next to Website package.
-
In the File directory dialog box, select the website backup file that you uploaded to the web root directory.
The file migration process overwrites files with the same name. Password-protected compressed files cannot be decompressed. File names that contain Chinese characters may cause decompression failures. The Linux operating system supports the zip and tar formats, while the Windows operating system supports the zip and rar formats. After you select the backup file, the path of the selected file, such as
/wordpress-5.0.zip, appears in the Website package field. Click Next. If you do not need to migrate website files, click Skip, do not migrate website files. -
Click Next.
-
-
Click Submit Settings.
On the Website Migration page, find the migration task and click View Details in the Actions column to view the task progress. When the task status changes to Succeeded, the migration is complete.
Related topics
-
If you need to migrate a website from Web Hosting instance A to Web Hosting instance B, but instance A cannot be upgraded to instance B and the two instances belong to different Alibaba Cloud accounts, see Migrate a website between instances under different accounts.
-
If you need to migrate a website from Web Hosting instance A to Web Hosting instance B, but instance A cannot be upgraded to instance B and the two instances belong to the same Alibaba Cloud account, see Migrate a website between instances under the same account.