Help Center/ Migration Center/ User Guide/ Migration Plans/ Creating a Storage Migration Plan
Updated on 2024-10-21 GMT+08:00

Creating a Storage Migration Plan

You can configure migration plans using templates designed for different resources and create migration workflows on the top of these plans. You can also view the migration settings of resources by application. Follow this section to configure a migration plan for batch migrating object storage buckets.

If only one object storage bucket needs to be migrated, you can directly create a migration workflow.

Prerequisites

  • Source buckets have been discovered over the Internet and their details have been collected.
  • (Optional) A deep collection has been performed for the buckets to be migrated.

Notes

  • A migration plan can be used to migrate buckets from the same source platform and to the same target region.
  • A source bucket can be included in multiple migration plans.
  • Source buckets in a migration plan may have different prefixes. You can give them the same prefix after they are migrated to the target bucket.

Procedure

  1. Sign 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 Configure Migration Plan.
  4. In the Basic Settings area, set parameters listed in Table 1.

    Table 1 Basic settings

    Parameter

    Configuration

    Migration Plan Name

    User-defined

    Description (Optional)

    User-defined

    Source Platform

    Select the cloud platform where the source resources are located.

    Target Region

    Select the region where the target buckets are located.

  5. Above the source bucket list, click Add.
  6. Select the buckets to be migrated in a batch. For each of the selected buckets, click Modify in the Operation column to specify the migration method. For details about the migration methods, see Table 2. Then click Confirm.

    • The selected resources must come from the source platform selected in Basic Settings.
    • 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 directories.

    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 names or prefixes.

  7. In the list of buckets to be migrated, click Modify in the Operation column.
  8. Select the resource credential. It is best to enter the total number and size of objects to be migrated. 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 name 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. For each source bucket, click Modify in the Operation column. Then select the credential used for accessing the target bucket, specify the target bucket, enter a prefix to rename or relocate migrated objects, and click Save.
  11. After you configure the target bucket settings for all buckets to be migrated, 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. After migration plan is created, you can see it in the list.

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