All Products
Search
Document Center

Simple Application Server:Migrate data between simple application servers

Last Updated:May 27, 2025

If you cannot upgrade your simple application server to meet your business requirements or you want to migrate your simple application server from one region to another, you can migrate data on the simple application server to another simple application server in the same region or across regions. This topic describes how to migrate data between simple application servers within the same region and across regions.

Prerequisites

  • The source simple application server is in the Running state. If the simple application server is expired, you must renew the server first. For more information, see Upgrade and renew a simple application server.

  • The image versions of the source and destination simple application servers are consistent. If the image versions are inconsistent, you must reset the OS of the destination simple application server. For more information, see Reset a simple application server.

Scenarios

In this example, the Mantis Bug Tracker (MantisBT) system that is deployed on a simple application server is migrated to another simple application server. After the migration is complete, the MantisBT system runs as expected on the destination simple application server and all data remains intact. The following table describes the specific migration scenarios.

Note

If your business requirements can be met by upgrading your simple application server, we recommend that you directly upgrade the configurations of your simple application server. For more information, see Upgrade a simple application server.

Scenario

Source server configuration

Destination server configuration

Migration within the same region

  • Server name: Simple Application Server A

  • Region: China (Hong Kong)

  • Image: LAMP 7.4 application image

  • Firewall: Traffic is allowed over ports 80, 443, and 22.

  • Application: The MantisBT system is deployed in the following website root directory: /data/wwwroot/default.

Note

In this example, the MantisBT system is deployed on Simple Application Server A by default. For more information, see Deploy MantisBT.

  • Server name: Simple Application Server B

  • Region:

    • Migration within the same region: China (Hong Kong)

    • Migration across regions: Singapore

  • Image: LAMP 7.4 application image

  • Firewall: Traffic is allowed over ports 80, 443, and 22.

Migration across regions

Preparations and precautions

Before you perform the migration, make the following preparations:

  • Create a snapshot to back up data.

    We recommend that you create a snapshot to back up data of your destination simple application server. If server data exceptions caused by migration failures occur, you can use the snapshot to roll back the disks of the destination simple application server. For more information, see Create a snapshot.

  • Check the network settings.

    Make sure that the source and destination simple application servers can access the Internet. If you migrate data across countries, you may encounter low migration speeds caused by network instability.

  • Consider the impacts of the migration on licensed applications.

    Simple application servers in different regions reside in different virtual private clouds (VPCs). If you migrate data across regions, the underlying hardware devices may change after the migration. As a result, the licenses that are bound to the hardware devices may become invalid. You must consider the impacts of the migration on the licensed applications on your simple application server.

Before you migrate data, take note of the following items:

  • The runtime environments of the simple application servers must be of the same version.

    Specific websites have high requirements on runtime environment versions. If the runtime environment versions of the source and destination simple application server are different, the websites cannot run as expected after the migration. We recommend that you specify the same image version for the source and destination simple application servers. If the image versions are different, you must reset the OS of the destination simple application server. For more information, see Reset a simple application server.

    Note

    Website building is complex. When you perform the migration operation, you must manually configure the destination simple application server to make sure that the destination simple application server has the same configurations as the source simple application server. For example, you must configure applications such as NGINX and Apache on the destination simple application server in the same manner as you configured them on the source simple application server.

  • The public IP addresses of the source and destination simple application servers are different.

    The public IP addresses of simple application servers are different from each other. If you bound a domain name to the source simple application server, you must unbind the domain name from the source simple application server and rebind the domain name to the destination simple application server by resolving the domain name to the public IP address of the destination simple application server after you complete the migration.

Procedure

You can decide to migrate data between simple application servers within the same region or across regions based on your business requirements.

Migration within the same region

The following steps describe how to migrate data from Simple Application Server A to Simple Application Server B within the same region.

  1. Create a custom image based on the snapshot of Simple Application Server A. For more information, see Create a custom image.

  2. Check whether Simple Application Server B exists within the region to which you want to migrate data.

    • If Simple Application Server B exists, reset the OS of Simple Application Server B. For more information, see Reset a simple application server.

      1. In the left-side navigation pane, click Servers.

      2. In the card of Simple Application Server B, choose More > Server Resetting.

      3. In the Select a server resetting mode section of the Server Resetting dialog box, select Replace with Another Image and then click the Custom Images tab.

      4. Select the custom image that you created in Step 1, set the password of Simple Application Server B in the Advanced Configuration section, and then click Confirm Resetting .

    • If Simple Application Server B does not exist, perform the following operations to create Simple Application Server B based on the custom image created in Step 1. For more information, see Use a custom image to create simple application servers.

  3. Verify the migration result.

    Enter <Public IP address of Simple Application Server B>/index.php in the browser on your on-premises computer. If you can view and use the MantisBT system as expected, the migration is successful.

    Note

    You can obtain the public IP address of Simple Application Server B from the card of Simple Application Server B.

Migration across regions

The following steps describe how to migrate data from Simple Application Server A to Simple Application Server B across regions.

  1. Create a custom image based on the snapshot of Simple Application Server A. For more information, see Create a custom image.

  2. Copy the custom image.

    To copy the custom image to the destination region, perform the following operations. For more information, see Copy a custom image.

    1. In the left-side navigation pane, click Image.

    2. On the Image page, find the custom image that you created in Step 1 and click Copy Image in the Actions column.

    3. In the Copy Image dialog box, configure parameters based on your business requirements.

      The following table describes the parameters.

      Parameter

      Description

      Destination Region

      Select a destination region to which you want to copy the custom image. In this example, select Singapore.

      Name of the custom image

      Enter a name for the copy of the custom image. The name must be 2 to 128 characters in length and can contain underscores (_) and hyphens (-). The name cannot start with a special character or digit.

      Description

      Enter a description for the copy of the custom image. The default description contains the ID and region of the source custom image. You can modify the default description. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

    4. Click Confirm.

      You can switch to the destination region. On the Image page, you can see that the custom image is in the Copying state. Wait until the custom image exits the Copying state.

      Note

      The Server ID/Name column that corresponds to the copy of the custom image is empty. This indicates that the copy of the custom image does not contain the name and ID of the source custom image. You can specify a new name and ID for the copy of the custom image.

  3. Check whether Simple Application Server B exists within the region to which you want to migrate data.

    • If Simple Application Server B exists, reset the OS of Simple Application Server B. For more information, see Reset a simple application server.

      1. In the left-side navigation pane, click Servers.

      2. In the card of Simple Application Server B, choose More > Server Resetting.

      3. In the Select a server resetting mode section of the Server Resetting dialog box, select Replace with Another Image and then click the Custom Images tab.

      4. Select the custom image that you created in Step 1, set the password of Simple Application Server B in the Advanced Configuration section, and then click Confirm Resetting .

    • If Simple Application Server B does not exist, perform the following operations to create Simple Application Server B based on the custom image created in Step 1. For more information, see Use a custom image to create simple application servers.

  4. Verify the migration result.

    Enter <Public IP address of Simple Application Server B>/index.php in the browser on your on-premises computer. If you can view and use the MantisBT system as expected, the migration is successful.

    Note

    You can obtain the public IP address of Simple Application Server B from the card of Simple Application Server B.

Related operations

The public IP addresses of the source and destination simple application servers are different. If you bound a domain name to the source simple application server by resolving the domain name to the public IP address of the source simple application server, you must unbind the domain name from the source simple application server and bind the domain name to the destination simple application server by resolving the domain name to the public IP address of the destination simple application server after you complete the migration. For more information, see Bind and resolve a domain name.