Data recovery can help you minimize the loss caused by database misoperations. ApsaraDB for MongoDB provides multiple recovery methods. This topic describes how to recover backup data in the current instance.
- Currently, only three-node replica set instances support this feature.
- If you recover backup data in the current instance, the original data of the current instance is overwritten and cannot be recovered. Therefore, you need to perform this operation with caution.
- Considering high risks for recovering backup data in the current instance, we recommend that you create an instance based on a time point or backup to recover data. For more information, see Create an instance based on a time point and Create an instance based on a backup . After verifying the recovered data, use DTS to migrate data to the current instance.
- Log on to the ApsaraDB for MongoDB console.
- In the upper-left corner of the home page, select the region where the target instance is located.
- In the left-side navigation pane, click Replica Set Instances.
- Locate the target instance and click its instance ID.
- In the left-side navigation pane, click Backup and Recovery.
- On the Backup and Recovery page that appears, locate the target backup and choose in the Operation column.
- In the Recover Backup Instance dialog box that appears, click OK.
- The instance enters the Restoring from Backup status. You can click Refresh to update and check the instance status. The data is successfully recovered when the instance status changes to Running.