ApsaraDB for MongoDB allows you to restore data to a new ApsaraDB for MongoDB instance by backup point. This method is ideal for data restoration and verification.

Prerequisites

  • The instance is a standalone or replica set instance.
  • Only backup points from the last seven days can be selected.

Precautions

To ensure better performance and stability of the instance, the system will upgrade the minor version to the latest version by default. If the minor version of your instance expires or is not included in the maintenance list and the instance is upgraded, migrated, changed, Created from a backup, Created by point-in-time, or performed Restore one or more databases of an ApsaraDB for MongoDB instance.

Billing

If you create an instance from a backup point, you are charged for the new instance. For more information, see Billable items and pricing.
Note If you want to restore data to a pay-as-you-go instance, make sure that you have sufficient balance in your account.

Procedure

  1. Log on to the ApsaraDB for MongoDB console.
  2. In the upper-left corner of the page, select the resource group and the region of the target instance.
  3. In the left-side navigation pane, click Replica Set Instances.
  4. Find the target instance and click its ID.
  5. In the left-side navigation pane, click Backup and Recovery.
  6. On the page that appears, click the Full Backup tab.
  7. Select the databases that you want to restore.
    1. Click More icon in the Actions column corresponding to a backup file and select Create Instance from Backup Point.
      Note After the database version is upgraded, the backup files of the source instance cannot be used to restore data to the new instance.
    2. In the Create Instance from Backup Point panel, select the databases that you want to restore.
      • All Databases: restores data of all databases in the source instance to the new instance.
      • Select Databases: restores data of some databases in the source instance to the new instance.
        You can select the databases that you want to restore or click Enter Databases to enter the names of the databases.
        Note If you enter the names of the databases, separate the database names with commas (,).
    3. Click OK.
  8. Create an instance.
    1. On the Clone Instance page, set Product Type.
      • Replica Set (Subscription): If you purchase a subscription instance, you must pay an upfront fee. We recommend that you select this billing method for long-term use, because it is more cost-effective than the pay-as-you-go billing method. Larger discounts are provided for longer subscription periods.
      • Replica Set (Pay-as-you-go): A pay-as-you-go instance is charged on an hourly basis as per its configurations. Fees are automatically deducted from your Alibaba Cloud account. We recommend that you select this billing method for short-term use. You can reduce costs by releasing your pay-as-you-go instance after the instance is no longer needed.
    2. Configure the new instance. For more information, see Create standalone instances or Create replica set instances.
      Note
      • You cannot change the Region, Database Version, Storage Engine, or Nodes settings for the new instance.
      • To make sure that the new instance has sufficient space for restoration, we recommend that you set the storage space to a value that is larger than or equal to that of the source instance.
  9. Confirm the order and complete the payment.
    1. Read and select the MongoDB Terms of Service and click Buy Now.
    2. On the Purchase page, click Purchase.
    3. Complete the payment.