Restore data across regions

更新时间:
复制 MD 格式

If you have backed up data across regions, you can restore the 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 can be used for a 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 suitable for long-term use, offering greater discounts for longer subscription periods.

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

    2. Configure the new instance. For more information about the parameters, 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.