Облачная платформаAdvanced

Restoring a DB Instance from Backups

Эта статья полезна?
Язык статьи: Английский
Перевести

Scenarios

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

Function Description

Table 1 Function description

Item

Description

Restoration scope

The entire instance

Instance data after restoration

The instance data after restoration is consistent with that in the full backup used for the restoration.

  • Restoring data to a new instance creates an instance with the same data as that in the backup.
  • Restoring data to an existing instance will overwrite the instance data.

Scenario

  • Restoration to a new instance
  • Restoration to an existing instance other than the original one

Configurations for restoring to a new instance

  • The DB engine and engine version of the new instance are the same as those of the original instance.
  • The new instance must have at least the same storage space as the original instance.
  • Other parameters need to be reconfigured.

Time required

The time required depends on how much data there is in the instance. The average restoration speed is 40 MB/s.

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 Database > Relational Database Service.
  4. 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.

  5. Select a restoration method.

    • Create New Instance

      The Create New Instance page is displayed.

      • The DB engine and engine version of the new instance are the same as those of the original instance.
      • The new instance must have at least the same storage space as the original instance.
      • Other settings are the same as those of the original DB instance by default and can be modified. For details, see Creating an RDS for PostgreSQL Instance.

    • Restore to Existing
      1. Select the prompt message.
      2. Select an existing instance and click Next.
      3. Confirm the information and click OK.

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

    • Restore to Existing

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

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