Incremental migration allows you to migrate incremental data from a source server to Alibaba Cloud at a specified interval. Incremental migration minimizes service disruptions and service delivery periods. This topic describes the best practices for incremental migration.

Prerequisites

The information of the source server is imported to the SMC console. For more information, see Step 1: Import the information of a migration source.
Notice
  • Incremental migration is supported by SMC client 2.0.0 and later . Therefore, we recommend that you use SMC client 2.0.0 and later to import the information of the migration source.
  • Keep the SMC client in the running state during a migration task. If data transfer is interrupted, you can restart the client and the migration task to resume the migration.

Background information

Each incremental migration task creates an intermediate instance to facilitate the migration process. The intermediate instance incurs a small fee. For more information, see Pay-as-you-go. The intermediate instance is released only when the incremental migration task is in the Expired state or when the task is deleted.

Procedure

The following steps show the best practices for incremental migration:

  1. (Optional) Step 1: Exclude dynamic data directories
  2. Step 2: Create and start an incremental migration task
  3. Step 3: Stop the services and run an incremental migration task

(Optional) Step 1: Exclude dynamic data directories

To ensure stable migration, we recommend that you exclude dynamic data directories, such as data directories of large databases. Then, you can stop the services on the source server and start the migration task. Skip this step if you do not need to exclude dynamic data directories.

To exclude dynamic data directories, perform the following steps. You do not need to stop the services that are running on the source server.

  1. Log on to the source server.
  2. Configure the SMC client and exclude dynamic data directories.

Step 2: Create and start an incremental migration task

You can perform the following steps to exclude dynamic data directories. You do not need to stop your services that are running on the source server.

  1. Log on to the SMC console.
  2. In the left-side navigation pane, click Migration Sources.
  3. Find the source server from which you want to migrate data. Click Create Migration Task in the Actions column.
  4. On the Create Migration Task page, turn on the Automatic Incremental Synchronization switch, and set the Synchronization Interval and Upperlimit of Reserved Images parameters. Set other parameters based on your needs and then click OK.
    Automatic incremental synchronization

    You can specify the following parameters. For more information, see Migration task parameters.

    • Synchronization Interval: Specify the time interval between incremental migration tasks.
    • Upperlimit of Reserved Images: Specify the maximum number of reserved images. Each incremental migration task generates new images. If the total number of generated image files exceeds the upper limit, the earliest unused images are deleted.
    • Method to Run: Select a method to run the migration task. In this topic, Run Now is selected.
    The migration task immediately runs after it is created.
    1. The first incremental migration task migrates all data except the excluded directories and files and generates a full image. You can use this image to create an instance for verification.
    2. After the first incremental migration task is complete, SMC migrates incremental data and generates images at specific time points based on the specified synchronization interval.
      Note The image generated for each incremental migration task is a full image of the source server at a specific time. The image includes the incremental data and all migrated data.
      In the image names that are generated during incremental migration, CYCLE_X indicates that the image is generated by the Xth incremental migration task. For example, if an image name contains CYCLE_2, it indicates that the image is generated by the second incremental migration task, as shown in the following figure.cycle

Step 3: Stop the services and run an incremental migration task

After you stop the services on the source server, perform the following steps to skip the excluded data directories and run an incremental migration task again:

  1. Log on to the source server. Stop the services that run on the source server and skip the excluded data directories.
  2. In the SMC console, manually run the incremental migration task or wait for the task to automatically run. To manually run the incremental migration task, perform the following steps:
    1. On the Migration Tasks page, find the incremental migration task.
    2. In the Actions column, click the More icon and choose Manual Incremental Migration from the shortcut menu.
      Manual incremental migration
    3. In the Start Migration Task message, click OK.

Result

On the Migration Tasks page, wait until the task is complete.
  • If the migration task is in the Waiting state, the migration succeeded and you can obtain the image that was generated during the migration. This image contains all the data for the first full migration and each subsequent incremental migration of the source server.
  • If the migration task is in the InError state, the migration fails. You must check the log to fix the issue, and then restart the task. For information about common errors and solutions, see SMC FAQ.

What to do next

After you obtain the latest full image, you can perform the following operations:
  • Create an instance to verify the image by performing the following steps:
    1. On the Migration Tasks page, find the target migration task and click Create Instance in the Actions column.
    2. On the Custom Launch tab, the Image section shows the latest full image. Configure other parameters based on your needs and purchase the instance. For more information, see Create an instance by using the wizard.
    3. Connect to the instance and check the system of the destination server. For more information, see How can I check my system after migrating a Windows server? or How can I check my system after migrating a Linux server?
  • Stop the incremental migration task by performing the following steps:
    Note You can pause an incremental migration task only when the task is in the Syncing or Waiting state.
    1. On the Migration Tasks page, find the migration task.
    2. In the Actions column, click the more icon and choose Pause from the shortcut menu.
    3. In the Stop Migration Task dialog box, click OK.
  • Delete the incremental migration task by perform the following steps:
    1. On the Migration Tasks page, find the target migration task.
    2. In the Actions column, click Delete.
    3. In the Delete Migration Tasks dialog box, click OK.