Updated on 2023-12-13 GMT+08:00

Restoring a Replica Set Backup to a New Instance

DDS allows you to restore an existing automated or manual backup to a new instance. The restored data is the same as the backup data.

When you restore an instance from a backup file, a full backup file is downloaded from OBS and then restored to the instance at an average speed of 40 MB/s.

Precautions

To restore backup files to a new instance, your account balance must be greater than or equal to $0 USD. You will pay for the new instance specifications.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Document Database Service.
  4. On the Instances page, click the replica set instance. Choose Backups & Restorations in the navigation pane, select the backup to be restored, and click Restore.

    Figure 1 Restoring a replica set instance backup

    Alternatively, on the navigation pane on the left, choose Backups. On the Backups page, locate the backup on the Replica Sets tab and click Restore in the Operation column.

    Figure 2 Restoring a replica set instance backup

  5. In the Restore DB Instance dialog box, select Create New Instance for Restoration Method and click OK.

    Figure 3 Restoring to a new instance

  6. The Create New Instance page is displayed for you to create an instance using the backup data. The new DB instance is independent from the original one.

    • You are recommended to deploy the restored DB instance in a different AZ to ensure that applications will not be adversely affected by the failure in any single AZ.
    • The database type, DB instance type, compatible MongoDB version, storage engine, and storage type must be the same as those of the original and cannot be changed.
    • The storage space is the same as that of the original instance by default. You can increase the storage space, but you cannot reduce it.
    • Other settings have default values and can be modified. For details, see Buying a Replica Set Instance.
    • A full backup is triggered after the new instance is created.