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

Restoring a DB Instance from Backups

Scenarios

This section describes how to use an automated or manual backup to restore a DB instance to the status when the backup was created. The restoration is at the DB instance level.

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

Constraints

  • If transparent page compression is enabled by specifying attributes in the CREATE TABLE statement for the original DB instance, the restoration may fail due to insufficient storage space.
  • Constraints on restoring data to the original DB instance:
    • If the DB instance for which the backup is created has been deleted, data cannot be restored 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:
    • If the target existing DB instance has been deleted, data cannot be restored to it.
    • 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 existing 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 Backups page, select the backup to be restored and click Restore in the Operation column.

    Alternatively, click the target DB instance on the Instances page. On the displayed page, choose Backups & Restorations. On the displayed page, select the backup to be restored and click Restore in the Operation column.

  4. Set Restoration Method to Create New Instance and click OK.
  5. On the displayed page, set required parameters and click Buy.

    • The DB engine and engine version of the new instance are the same as those of the original instance.
    • Storage space of the new DB instance is the same as that of the original DB instance by default and the new instance must be at least as large as the original DB instance.
    • 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.

  6. 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.

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

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

  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 Backups page, select the backup to be restored and click Restore in the Operation column.

    Alternatively, click the target DB instance on the Instances page. On the displayed page, choose Backups & Restorations. On the displayed page, select the backup to be restored and click Restore in the Operation column.

  4. Set Restoration Method to Restore to Original, select the confirmation check box, and click Next.
  5. Confirm the information and click OK.
  6. View the restoration result.

    On the Instances page, the status of the original DB instance changes from Restoring to Available. If the original DB instance contains read replicas, the read replica status is the same as the original DB instance status.

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

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

  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 Backups page, select the backup to be restored and click Restore in the Operation column.

    Alternatively, click the target DB instance on the Instances page. On the displayed page, choose Backups & Restorations. On the displayed page, select the backup to be restored and click Restore in the Operation column.

  4. Set Restoration Method to Restore to Existing, select the confirmation check box, select an existing instance, and click Next.
  5. Confirm the information and click OK.
  6. View the restoration result.

    On the Instances page, the status of the target existing DB instance changes from Restoring to Available. If the target DB instance contains read replicas, the read replica status is the same as the target DB instance status.

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

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