Migrate a website to Alibaba Cloud Web Hosting

更新时间:
复制 MD 格式

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.

  • If the destination Web Hosting instance uses a MySQL database, you can only import backup files in .sql format.

  • If the destination Web Hosting instance uses a SQL Server database, you can only import backup files in .bak format.

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.

  • The web root directory for a Web Hosting instance that runs a Linux operating system is /htdocs.

  • The web root directory for a Web Hosting instance that runs a Windows operating system is /.

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

Warning

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.

  1. Log on to the Cloud Web Hosting management page.
  2. Find the Cloud Web Hosting instance you want to manage and click Manage in the Actions column.
  3. In the , choose Tools > Website Migration.

  4. On the Website Migration page, click Create Migration Task.

  5. On the Database Migration Settings page, configure the database migration settings.

    1. Click Browse next to Database file.

    2. In the File directory dialog box, select the database backup file that you uploaded to the web root directory and click OK.

    3. From the Destination database drop-down list, select the database of the destination Web Hosting instance.

    4. Click Next.

  6. On the Website file migration settings page, configure the website file migration settings.

    1. Click Browse next to Website package.

    2. 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.

    3. Click Next.

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