This topic describes how to create a new ApsaraDB for MongoDB instance from a backup. You can use this method to restore data or verify data in instance backups.
- The source instance is a standalone instance or a replica set instance.
- The selected backup was created in the last seven days.
To ensures 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 data to a new ApsaraDB for MongoDB instance.
If you create an instance from a backup, you are charged for the new instance. For more information, see Billing items and pricing.
- Log on to the ApsaraDB for MongoDB console.
- In the upper-left corner of the page, select the resource group and the region of the target instance.
- In the left-side navigation pane, click Replica Set Instances.
- Find the target instance and click its ID.
- In the left-side navigation pane, click Backup and Recovery.
- Find the target backup file. On the right side of the backup file, choose .Note If you have upgraded the database version, you cannot use the backup files of the earlier database version to restore data.
- In the dialog box that appears, configure the following parameters:
- All Databases: restores data of all databases in the source instance to the target instance.
- Select Databases: restores data of some databases in the source instance to the target 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 (,).
- On the Instance Purchase page, select a billing method for the new instance.Note
- Subscription: You must pay for an instance when you create it. This method is more cost-effective than the pay-as-you-go method. We recommend that you select this method for long-term use. A longer subscription period enables a larger discount.
- Pay-as-you-go: You are billed on an hourly basis based on the used resources. We recommend that you select this billing method for short-term use. You can reduce costs by releasing your pay-as-you-go instance if it is no longer needed.
- Configure the new instance. For more information, see Create a replica set instance.Note
- You cannot modify Region, Database Version, Storage Engine, and Replication Factor for the new instance.
- We recommend that you select a storage capacity that is no smaller than the storage capacity of the source instance. This ensures that the new instance has sufficient space to store the data restored from the source instance.
- Click Buy Now.
- Read and select ApsaraDB for MongoDB Agreement of Service, and pay for the order.Note The time required to restore data to a new instance from a backup varies depending on factors such as the data volume, the task priority in the task queue, and network conditions. When the new instance enters the Running state, the restoration is complete.