The data recovery function can minimize the damage caused by database misoperations. Currently, ApsaraDB for MongoDB supports data recovery by backup.
The MongoDB rollback operation overwrites the data. After rollback, the data cannot be restored. Therefore, perform rollback with caution.
If time permits, we recommend that you use the instance creation method from backup points. This method creates a Pay-As-You-Go instance based on the backup set to be recovered. After verifying that the data is correct, you can recover the data to the original instance.
Log on to the MongoDB console and find the target instance.
Click the instance ID in the ReplicaSet instance list or Manage to go to the Basic Information page.
Select Backup and Recovery in the left-side navigation pane.
On the Backup List page, select the time range for recovery and click Query.
Find the target backup file and click Data Recovery.
In the Data Recovery window, select OK to directly recover the data of the original instance.