Updated on 2025-11-11 GMT+08:00

PITR: Restoring a DB Instance to a Point in Time

Scenarios

You can restore an instance from automated backups to a specified point in time.

When you enter the time point that you want to restore the DB instance to, RDS 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 80 MB/s.

Constraints

  • Do not run the reset master command on RDS for MySQL DB instances within their lifecycle. Otherwise, an exception may occur when restoring an RDS for MySQL DB instance to a specified point in time.
  • To restore DB instances to a point in time in batches, you must contact customer service to request required permissions.
  • Constraints on restoring data to the original DB instance:
    • Restoring to the original DB instance will overwrite all existing data and passwords, and the DB instance will be unavailable during the restoration.
  • Constraints on restoring data to an existing DB instance:
    • Restoring to an existing DB instance will overwrite data and passwords on it and cause the existing DB instance to be unavailable.
    • The selected DB instance must use the same DB engine and same major version as the original DB instance, and its minor version cannot be earlier than that of the original DB instance.
    • 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, the task cannot be delivered.
  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  3. On the Instances page, click the target instance name.
  4. In the navigation pane on the left, choose Backups & Restorations.
  5. In the upper right corner of the page, choose Restore to Point in Time > Restore Instance.
  6. Select the restoration date and time range, enter a time point within the selected time range, and set Restoration Method to Create New Instance. Then, click OK.
  7. On the displayed page, set required parameters and click Buy.

    • The DB engine and version of the new DB instance are the same as those of the original DB instance and cannot be changed.
    • Other settings are the same as those of the original DB instance by default and can be modified. For details, see Buying an RDS for MySQL DB Instance.

  8. View the restoration result.

    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.

    You can view the detailed progress and result of the task on the Task Center page. For details, see Viewing a Task.

    After the new DB instance is created, a full backup will be automatically triggered.

  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  3. On the Instances page, click the target instance name.
  4. In the navigation pane on the left, choose Backups & Restorations.
  5. In the upper right corner of the page, choose Restore to Point in Time > Restore Instance.
  6. Select the restoration date and time range, enter a time point within the selected time range, set Restoration Method to Restore to Original, select the confirmation check box, and click Next.
  7. Confirm the information and click OK.
  8. View the restoration result.

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

    A new restoration time range is available. There will be a difference between the new and original time ranges. This difference reflects the duration of the restoration.

    You can view the detailed progress and result of the task on the Task Center page. For details, see Viewing a Task.

    After the restoration is complete, a full backup will be automatically triggered.

  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  3. On the Instances page, click the target instance name.
  4. In the navigation pane on the left, choose Backups & Restorations.
  5. In the upper right corner of the page, choose Restore to Point in Time > Restore Instance.
  6. Select the restoration date and time range, and enter a time point within the selected time range.
  7. Set Restoration Method to Restore to Existing, select the confirmation check box, select an existing instance, and click Next.
  8. Confirm the information and click OK.
  9. View the restoration result.

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

    You can view the detailed progress and result of the task on the Task Center page. For details, see Viewing a Task.

    After the restoration is complete, a full backup will be automatically triggered.