Restoring Replica Set Instance to a Point in Time
Scenarios
You can restore the data of a replica set instance to a specified time point.
Restoration Precautions
- Currently, you can restore a replica set instance to a new or original DB instance at a point in time.
- The local database is not included in the databases that can be restored to a specified time point.
- When you enter the time point that you want to restore the DB instance to, DDS downloads the most recent full backup file from OBS to the DB instance. Then, incremental backups are also restored to the specified point in time on the DB instance. Data is restored at an average speed of 30 MB/s.
Constraints
You can use backup files to create a new DB instance only when your account balance is greater than or equal to ¥0.
Data can be restored to a specified time point only after the automated backup policy is enabled.
Procedure
- Log in to the DDS console.
- On the Instance Management page, click the target replica set instance.
- In the navigation pane on the left, click Backups & Restorations.
- On the Backups & Restorations page, click Restore to Point In Time.
- Select the date and time range, select or enter a time point within the acceptable range, and select Create New Instance or Restore to Original.
- On the displayed page, the DB instance is restored based on the restoration method you selected in 5.
- Create New Instance
The Create New Instance page is displayed for you to create a DB 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 only increase the storage space.
- Other settings are the same as those of the original DB instance by default and can be modified. For details, see Buying a Replica Set Instance.
- Restore to Original
- Restoring to the original DB instance will overwrite all existing data and the DB instance will be temporarily unavailable during the restoration.
- The administrator password of the database instance remains unchanged after the restoration.
- If the backup method is logical backup, the backup cannot be restored to the original instance.
Check that the status of the DB instance on the Instance Management page is Restoring.
- Create New Instance
Last Article: Restoring a Replica Set Instance from a Backup
Next Article: Restoring Replica Set Database and Table to a Point in Time
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.