This topic describes how to restore data to the current ApsaraDB for MongoDB instance. This helps minimize the data loss caused by incorrect operations.
The instance is a replica set instance with three nodes.
- The time required to restore data to your current instance varies depending on factors such as the data volume, task queue status, and network conditions. When the status of the instance changes to Running, the restoration is complete.
- If you restore data to your current instance, all existing data is overwritten and
cannot be restored.
Warning This operation is risky. We recommend that you restore data to a new ApsaraDB for MongoDB instance by point in time or backup set. Then, verify the data, and migrate the data back to the source instance by using Data Transmission Service (DTS). For more information, see Restore data to a new ApsaraDB for MongoDB instance by point in time or Create an instance from a backup.
- 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.
- On the Backup and Recovery page, find the backup set and choose in the Actions column.Note If you have upgraded the database version, you cannot use the backup files of the earlier database version to restore data.
- In the Roll Back Instance message, click OK.Note The instance status becomes Restoring from Backup after you click OK. You can click Refresh in the upper-right corner of the Backup and Recovery page to update the instance status. The restoration is complete when the instance status changes to Running.