Help Center > > User Guide> Working with RDS for MySQL> Backups and Restorations> Restoring a DB Instance to a Point in Time

Restoring a DB Instance to a Point in Time

Updated at: May 26, 2020 GMT+08:00

Scenarios

RDS can use existing automated backups to restore DB instances to a point in time.

RDS for MySQL supports restoration to a new or an existing DB instance.

You can restore one or multiple DB instances at a time.

Constraints

  • If you restore backup data to a new DB instance:
    • The DB engine, version, and port number of the database are the same as those of the original DB instance and cannot be changed.
    • You need to set a new administrator password.
  • RDS for MySQL does not support restoration to the original DB instance. If you intend to restore to the original DB instance, restore to a new or an existing DB instance first and then change the IP address to that of the original DB instance.

Restoring a DB Instance

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List. Under Database, click RDS. The RDS console is displayed.
  4. On the Instance Management page, click the target DB instance.
  5. In the navigation pane on the left, choose Backups & Restorations. On the displayed page, click Restore to Point in Time.
  6. Select a restoration date and time range, enter a time point within the selected time range, and select a restoration method. Then, click OK.

    RDS for MySQL does not support restoration to the original DB instance. If you intend to restore to the original DB instance, restore to a new or an existing DB instance first and then change the IP address to that of the original DB instance.

    • Create New Instance

      The Create New Instance page is displayed.

      • The DB engine, version, and port number of the database are the same as those of the original DB instance and cannot be changed.
      • You need to set a new administrator password.
      • You can modify the other parameter values.
    • Restore to Existing
      • Restoring to an existing DB instance will overwrite data on it and cause the existing DB instance to be unavailable.
      • To restore backup data to an existing DB instance, the selected DB instance must be in the same VPC as the original DB instance and must have the same DB engine and the same or later version than the original DB instance. The backup data of primary/standby (1/2) DB instances can be restored only to primary/standby (1/2) DB instances.
      • Ensure that the storage space of the selected DB instance is greater than or equal to the storage space of the original DB instance. Otherwise, data will not be restored.

      Select an existing DB instance and click OK.

      If you have enabled the operation protection function, click Send Code in the displayed Identify Verification dialog box and enter the obtained verification code. Then, click OK.

      Second authentication is required to improve the security of your account and cloud product. For details about how to enable operation protection, see the Identity and Access Management User Guide.
      Figure 1 Restoring to an existing DB instance

  7. View the restoration result. The result depends on which restoration method was selected:

    • Create New Instance

      A new DB instance is created using the backup data. The status of the DB instance changes from Creating to Available.

      The new DB instance is independent from the original one. If you need read replicas to offload read pressure, create one or more for the new DB instance.

    • Restore to Existing

      On the Instance Management page, the status of the DB instance changes from Restoring to Available.

    After the restoration, the system will perform a full backup.

Restoring Multiple DB Instances at a Time

Only users with the batch restoration permission can restore data to a specified time point in batches. You can contact customer service to participate in the Open Beta Test.

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List. Under Database, click RDS. The RDS console is displayed.
  4. On the Instance Management page, select target DB instances and click Restore above the DB instance list.

    Only RDS MySQL DB instances support batch restoration.

  5. In the displayed dialog box, set a unified or different restoration time points for the DB instances.

    Figure 2 Batch restoration

  6. Click OK to submit the batch restoration task.
  7. If you have enabled the operation protection function, click Send Code in the displayed Identify Verification dialog box and enter the obtained verification code. Then, click OK.

    Second authentication is required to improve the security of your account and cloud product. For details about how to enable operation protection, see the Identity and Access Management User Guide.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel