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

Restoring a Cross-Region Backup to a Point in Time

DDS allows you to restore cross-region backups to a point in time.

When you enter the point in time that you want to restore the instance to, DDS downloads the most recent full backup file from OBS to the instance. Then, incremental backups are also restored to the specified point in time on the instance. Data is restored at an average speed of 30 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.
  • Only cluster and replica set instances of versions 4.0 and 4.2 can be restored to a point in time.
  • Cluster instances can be restored to a specific point in time only after the automated and incremental backup policies are enabled.
  • Replica set instances can be restored to a specific point in time only after the automated backup policy is enabled.
  • The local database is not included in the databases that can be restored to a specified time point.
  • To ensure data security, the dropDatabase operation is blocked when the incremental backup is restored to a point in time. Empty databases or views may exist after the restoration. You can delete them.
  • Only whitelisted users can use this function. You need to submit a service ticket to apply for this function. In the upper right corner of the management console, choose Service Tickets > Create Service Ticket to submit a service ticket.

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, choose Backups on the navigation pane. Click the Cross-Region Backups tab. On the displayed page, locate the target DB instance and click View Cross-Region Backup in the Operation column.

    Figure 1 Cross-region backups

  5. Locate the backup to be restored and click Restore to Point in Time.

    Figure 2 Restoring a cross-region backup

  6. In the Restore to Point in Time dialog box, select Create New Instance for Restoration Method and click OK.

    Figure 3 Restoring a cross-region backup to a point in time

  7. 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, storage type, and shard quantity 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 are the same as those of the original DB instance by default and can be modified. For details, see Buying a Cluster Instance or Buying a Replica Set Instance.
    • A full backup is triggered after the new instance is created.