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 region where the source instance resides.
  3. In the left-side navigation pane, click Replica Set Instances.
  4. Find the source 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 Recovery in the Operation column.Restore data to your current instance
  7. In the Recover Backup Instance message that appears, click OK.
    Note The instance status becomes Restoring from Backup. You can click Refresh to update the instance status. When the instance status changes to Running, the restoration is complete.