Data restoration helps minimize the data loss caused by accidental changes. ApsaraDB for MongoDB provides multiple data restoration methods. This topic describes the methods used to restore backup data to the current instance.

Prerequisites

The instance is a three-node replica set instance.

Background information

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. Click More icon in the Actions column corresponding to a backup file and select Data Rollback.
    Note After the database version is upgraded, the backup files of the source instance cannot be used to restore data to the new instance.
  8. In the Roll Back Instance message, click OK.
    Note The instance state becomes Restoring from Backup after you click OK. You can click Refresh in the upper-left corner of the Backup and Recovery page to refresh the instance state. The restoration is complete when the instance state changes to Running.