All Products
Search
Document Center

ApsaraDB RDS:Manage RDS instances in the recycle bin

Last Updated:Oct 13, 2023

This topic describes how to manage ApsaraDB RDS for PostgreSQL instances in the recycle bin. You can unlock, rebuild, or destroy the RDS instances in the recycle bin.

Sample scenarios

Your subscription RDS instance is locked due to expiration and moved to the recycle bin. You can renew the RDS instance in the recycle bin to unlock the RDS instance within seven days. For more information, see Unlock an RDS instance that has expired. After the seven-day period elapses, you can only rebuild the RDS instance in the recycle bin and restore the data of the RDS instance to a new RDS instance. For more information, see Rebuild an RDS instance.

Description

If you manually release a pay-as-you-go RDS instance or unsubscribe from a subscription RDS instance, or a subscription RDS instance is automatically released upon expiration, the RDS instance is moved to the recycle bin. An RDS instance is not moved to the recycle bin in the following scenarios:

  • The RDS instance is manually released or unsubscribed from within seven days after it is created.

  • The RDS instance is a pay-as-you-go RDS instance and is automatically released due to overdue payments.

  • The RDS instance is a read-only RDS instance.

Unlock an RDS instance whose payment is overdue

If a pay-as-you-go RDS instance is locked due to overdue payments, log on to the Billing Management console. Then, verify that a valid payment method is specified for your Alibaba Cloud account.

Unlock an RDS instance that has expired

If a subscription RDS instance is locked due to expiration, you can renew the instance in the recycle bin within the 15 days. If you do not renew the instance within 15 days, the instance is released.

  1. Log on to the ApsaraDB RDS console.
  2. In the left-side navigation pane, click Recycle Bin. In the top navigation bar of the page that appears, select the region of the RDS instance that you want to renew.

  3. Find the RDS instance and click Unlock in the Operation column to renew the RDS instance.

After the RDS instance is renewed, it is immediately restored to normal.

Rebuild an RDS instance

If the RDS instance that is moved the recycle bin is in the Released state, its backup data is retained for eight days. During this period, you can rebuild the instance and restore the data to a new RDS instance. For more information, see Overdue payments.

  1. Log on to the ApsaraDB RDS console.
  2. In the left-side navigation pane, click Recycle Bin. In the top navigation bar, select the region in which the RDS instance resides.

  3. Find the RDS instance and click Rebuild.

By default, the system creates an RDS instance that has the same specifications in the same zone as the original RDS instance. You can also create an RDS instance that has different specifications in a different zone than the original RDS instance. After an RDS instance is rebuilt, the data of the original RDS instance is restored to a new RDS instance. However, the new RDS instance does not inherit the ID or endpoint of the original RDS instance. You can change the endpoint of the new RDS instance to the endpoint of the original RDS instance. This way, your applications can connect to the new RDS instance by using the original endpoint. 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.

Destroy an RDS instance

If the RDS instance that is moved the recycle bin is in the Released state, you can destroy the instance.

Warning

After you destroy an RDS instance, only the cross-region backup files of the instance are retained. All regular data backup files, archived backup files, and log backup files of the RDS instance are destroyed. Proceed with caution. For more information about cross-region backup files, see Enable cross-region backups for an ApsaraDB RDS for MySQL instance.

  1. Log on to the ApsaraDB RDS console.
  2. In the left-side navigation pane, click Recycle Bin. In the top navigation bar, select the region in which the RDS instance resides.

  3. Find the RDS instance and click Destroy in the Actions column.

References