Use a cross-region backup to restore ApsaraDB for MongoDB instance data to a new instance in the region where the backup resides.
Prerequisites
Before you begin, ensure that you have:
A replica set or sharded cluster instance
An instance that uses Enterprise SSDs (ESSDs) for storage
Cross-region backup configured for the instance. For details, see Configure cross-region backup for an instance.
Limitations
Cross-region data restoration is not supported for instances with disk encryption enabled.
Cross-region data restoration is only supported when all additional log backup tasks are complete or no tasks are in progress.
Replica set instances: The storage capacity of the new instance must be greater than or equal to that of the source instance.
Sharded cluster instances: The number of shard nodes and the storage capacity of each shard node in the new instance must each be greater than or equal to those in the source instance.
Restore data to a different region
Go to the Replica Set Instances or Sharded Cluster Instances page. In the top navigation bar, select the region where the source instance resides. Find the instance and click its ID.
In the left-side navigation pane, click Backup and Restoration.
Click the Cross-region Backup tab.
Find the backup set to use, then click Create Instance from Backup Point in the Actions column.
In the Create Instance from Backup Point panel, click OK.
On the Clone Instance page, configure the new instance based on its architecture:
Replica set
Set Product Type:
Replica Set (Subscription): Pay an upfront fee for long-term use. Longer subscription periods offer lower prices.
Replica Set (Pay-as-you-go): Billed hourly based on the instance type and largest storage capacity of your instance at the time of billing. Suitable for short-term use; release the instance when no longer needed to avoid ongoing charges.
Configure the instance. For details, see Create a replica set instance.
Sharded cluster
Set Product Type:
Sharded Cluster (Subscription): Pay an upfront fee for long-term use. Longer subscription periods offer lower prices.
Sharded Cluster (Pay-as-you-go): Billed hourly based on the instance type and largest storage capacity of your instance at the time of billing. Suitable for short-term use; release the instance when no longer needed to avoid ongoing charges.
Configure the instance. For details, see Create a sharded cluster instance.
Complete payment on the payment page.
API reference
| Operation | Description |
|---|---|
| DescribeBackups | Queries the backup list of a replica set instance |
| DescribeClusterBackups | Queries the backup list of a sharded cluster instance |
| CreateDBInstance | Restores data to a new replica set instance |
| CreateShardingDBInstance | Restores data to a new sharded cluster instance |
| CheckRecoveryCondition | Checks whether a cloud-disk instance meets the data restoration conditions |