Updated on 2024-05-06 GMT+08:00

Creating a Migration Plan

You can configure migration plans using templates designed for different resources, create migration workflows using the plans, and view the migration settings of resources by application.

The following migration plan template is provided:

Batch Object Storage Migration: This template can be used to migrate multiple object storage buckets in a batch. If only one object storage bucket needs to be migrated, create an object storage migration workflow.

Prerequisites

  • Object storage resources have been discovered over the Internet.
  • (Optional) A deep collection has been performed for the resources to be migrated.

Precautions

  • A migration plan can be used to migration buckets from the same source platform to a target region.
  • A source bucket can be included in multiple migration plans.
  • In a migration plan, a bucket can have one target prefix but multiple source prefixes.

Procedure

  1. Log in to the MgC console. In the navigation pane, choose Design > Migration Plans.
  2. Click Create Migration Plan in the upper right corner of the page.
  3. In the Batch Object Storage Migration card, click in the Configure Migration Plan.
  4. In the Basic Configuration area, set parameters listed in Table 1.

    Table 1 Basic parameters

    Parameter

    Configuration

    Plan Name

    Enter a name.

    Description (Optional)

    Enter a description.

    Source Platform

    Select the cloud platform where the source resources are located.

    Target Region

    Select the region you want to migrate to.

  5. Above the source bucket list, click Add.
  6. Select the buckets to be migrated and click Confirm. Click Modify in the Operation column to configure the migration method for each bucket. For details about migration methods, see Table 2.

    • The selected resources must come from the source platform selected in Basic Configuration.
    • A maximum of 100 buckets can be added.
    Table 2 Migration methods

    Migration Method

    Description

    Full migration

    Migrates all data in the source bucket or specified paths.

    List migration

    Migrates objects recorded in the list files. The list files must be stored in the target bucket.

    Prefix migration

    Migrates objects matched with the specified prefixes.

  7. In the list of buckets to be migrated, click Modify in the Operation column.
  8. Select the source credentials. It is best to enter the number of objects and the total object size. Then click Confirm.

    • If the migration method configured for the bucket is List migration, in the List Path box, enter the directory that stores the lists of objects to be migrated. The directory must end with a slash (/).
    • If the migration method configured for the bucket is Prefix migration, add the names or prefixes of objects to be migrated. Note that you need to click Save each time you add an object name or prefix.

      If the files to be migrated are stored in the root directory of the source bucket, add their prefixes directly. If the files are stored in a non-root directory, add their directories and name prefixes in the format of Directory/Prefix.

  9. After you configure the migration settings for all buckets to be migrated, click Next.
  10. Click Modify in the Operation column, select the credentials used for accessing target resources and the target bucket, enter a prefix to rename migrated objects, and click Save.
  11. After you configure the target configuration for all source buckets, click Next. You can assess how large of a migration cluster is required for the migration and then create a migration cluster with the recommended specifications. Alternatively, you can skip this step and use an existing migration cluster. For details about how to create a cluster, see Creating a Migration Cluster.
  12. Click Next to select an existing migration cluster. All resources in this plan will be migrated using this cluster.
  13. Click Select Cluster. The Select Cluster dialog box is displayed on the right.
  14. In the cluster list, select the cluster you want to use and click Confirm. If you want to modify an existing cluster to meet your requirements, see Managing a Migration Cluster.
  15. Click OK. The migration plan is created. In the migration plan list, you should view the created plan.

    • If you need to modify the plan settings, click Design in the Operation column.
    • After design progress is Completed, click Create Workflow in the Operation column to create a migration workflow to migrate all buckets in the plan in a batch.