After an ApsaraDB RDS for PostgreSQL instance moves to the recycle bin, you can unlock, rebuild, or destroy the instance in the recycle bin.
The system backs up an instance when the instance is being deleted. If the instance is being backed up and the deletion process is not complete (the instance status is Deleting), the recycle bin feature is unavailable for the instance. The deletion process may take a period of time, which depends on the data volume and configuration of the instance. Wait until the instance status changes to Deleted.
Example scenario
A user has a subscription RDS instance that is locked due to expiration. Within seven days, the user can recover the instance in the recycle bin. After seven days, the user can only rebuild the instance in the recycle bin to restore the data of the original instance to a new instance.
Feature description
Recycle bin feature category | Specific scenarios |
Scenarios in which instances enter the recycle bin |
|
Scenarios in which instances do not enter the recycle bin |
|
Unlock an instance
Unlock a pay-as-you-go instance by topping up your account
If a pay-as-you-go RDS instance is locked due to overdue payments, check the payment method of your Alibaba Cloud account.
Renew and unlock a subscription instance
After a subscription RDS instance is locked due to expiration, you can renew and unlock the instance in the recycle bin within 7 days. If you do not renew the instance within 7 days, the instance is released.
Go to the Instances page.
In the left-side navigation pane, click Recycle Bin. Then, in the upper part of the page, select the region where the target instance resides.
Find the locked instance and click Unlock to renew the instance.
After the instance is renewed, the instance is immediately restored to normal.
Rebuild an instance
When the state of an RDS instance in the recycle bin is Released, its data backups are retained for another eight days. During this period, you can use the rebuild feature of the recycle bin to restore the data to a new instance. For more information about the rules, see Overdue payments.
Backups created by instances with TDE encryption enabled cannot be used to rebuild instances.
Log on to the ApsaraDB RDS console.
In the left-side navigation pane, click Recycle Bin. In the top navigation bar, select the region of the instance.
Find the instance and click Rebuild.
By default, an instance with the same specifications is created in the zone of the original instance. You can also select a different zone and different instance specifications. After the instance is rebuilt, the data of the original instance is restored to a new instance. However, the instance ID and endpoint of the original instance are not retained. You can change the endpoint of the new instance to the endpoint of the original instance to ensure that your services can connect without interruption. For more information about how to change the endpoint, see View and change the endpoints and port numbers of an ApsaraDB RDS for PostgreSQL instance.
You cannot rebuild an instance that uses phased-out instance types, database versions, or storage types. For more information, see the following topics:
Destroy an instance
Destroying an instance also destroys all backups except cross-region backups, including regular data backups, archived backups, and log backups. Proceed with caution.
When the state of an RDS instance in the recycle bin is Released, you can destroy the instance in the recycle bin.
Due to delays in system cache updates, you may not be able to immediately destroy an instance that has just entered the recycle bin. In most cases, an instance can be destroyed only after it has been in the recycle bin for approximately 10 minutes. In addition, billing stops immediately after an instance enters the recycle bin.
Log on to the ApsaraDB RDS console.
In the left-side navigation pane, click Recycle Bin. In the top navigation bar, select the region of the instance.
Find the instance and click Actions > Destroy.