• Relational Database Service

rds
  1. Help Center
  2. Relational Database Service
  3. User Guide
  4. Working with RDS for PostgreSQL
  5. Restoring a DB Instance from a Backup

Restoring a DB Instance from a Backup

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.

Procedure

  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 Relational Database Service to go to the RDS console.
  4. On the Backups & Restorations page, locate the target backup and click Restore in the Operation column.

    Alternatively, click the target DB instance on the Instance Management page. On the Backups & Restorations page, locate the target backup and click Restore in the Operation column.

  5. Select one of the following restoration methods and click OK.

    • Create New Instance

      The Create New Instance page is displayed.

      • The DB engine and version of the new DB instance are the same as those of the original DB instance. The database port is 5432 by default.
      • Storage space of the new DB instance is the same as that of the original DB instance by default and must be greater than or equal to that of the original DB instance.
      • Other parameters use the default values and can be modified. For details, see section Creating an RDS PostgreSQL DB Instance.
      •  
    • Restore to Original
      • 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 the DB instance will be temporarily unavailable.

  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 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, the system will perform a full backup.

    • Restore to Original

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

      If the automated backup policy is enabled, a full backup will be triggered after the restoration is complete. Otherwise, the full backup will not be triggered.