Restore data across regions

更新时间:
复制 MD 格式

Restore cross-region backup data to a new instance in the destination region.

Prerequisites

  • The instance is a replica set or a sharded cluster.

  • The storage type of the instance is ESSD.

  • A cross-region backup has been created. For more information, see Back up data across regions.

Usage notes

A backup set is available for cross-region restore only after any associated log backups are complete.

Procedure

  1. Go to the Replica Set Instances or Sharded Cluster Instances page, select a resource group and a region at the top, and then click the ID of the target instance.

  2. In the left-side navigation pane of the instance details page, click Backup and Restoration.

  3. Click the Cross-Region Backup tab.

  4. Find the target backup set and click Create Instance from Backup Point in the Actions column.

  5. In the Create Instance from Backup Point panel, click Confirm.

  6. Clone the instance. The procedure varies for replica set and sharded cluster instances.

    Replica set

    1. On the Clone Instance page, select a Product Type.

      • Replica Set (Subscription): A prepaid billing method where you pay for the instance upon creation. This option is suitable for long-term needs and is more cost-effective than the pay-as-you-go option. The longer the subscription period, the larger the discount.

      • Replica Set (Pay-as-you-go): A postpaid billing method where you are billed hourly based on the instance specifications and the maximum storage capacity. This option is suitable for short-term needs. You can release the instance at any time to save costs.

    2. Configure the new instance. For parameter details, see Create a replica set instance.

      Important

      The storage capacity of the new instance must be greater than or equal to that of the source instance.

    Sharded cluster

    1. On the Clone Instance page, select a Product Type.

      • Sharded Cluster (Subscription): A prepaid billing method suitable for long-term use. It is more cost-effective than pay-as-you-go, and longer subscription periods offer greater discounts.

      • Sharded Cluster (Pay-as-you-go): A postpaid, hourly-billed method suitable for short-term needs. Fees are based on instance specifications and the storage capacity used.

    2. Configure the new instance. For more information about the parameters, see Create a sharded cluster instance.

      Important
      • The new instance must have at least as many shard nodes as the original instance.

      • The storage capacity of each new shard node must be greater than or equal to that of the corresponding node in the original instance.

  7. Follow the on-screen instructions to complete the payment.

Related APIs

API

Description

DescribeBackups

Queries the backup list of an ApsaraDB for MongoDB replica set instance.

DescribeClusterBackups

Queries the backup list of an ApsaraDB for MongoDB sharded cluster instance.

CreateDBInstance

Restores data to a new ApsaraDB for MongoDB replica set instance.

CreateShardingDBInstance

Restores data to a new ApsaraDB for MongoDB sharded cluster instance.

DescribeDBInstanceAttribute

Queries whether an ApsaraDB for MongoDB instance that uses cloud disks is eligible for data restoration.