This topic describes how to restore data to your current ApsaraDB for MongoDB instance. This helps minimize the data loss caused by incorrect operations.

Prerequisites

The instance is a replica set instance with three nodes.

Impacts

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 Restore data to a new ApsaraDB for MongoDB instance by backup set,

Precautions

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.

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 Backup and Recovery page that appears, find the target backup set and choose More > Data Rollback in the Operation column.
    Note If you have upgraded the database version, the backup file of the old version cannot be used to restore data.
  7. In the Roll Back Instance message that appears, click OK.
    Note The instance status becomes Restoring from Backup. You can click Refresh at the top right corner of the Backup and Recovery page to update the instance status. The restoration is complete when the instance status changes to Running.