Recycling a DB Instance
Scenarios
RDS allows you to move unsubscribed yearly/monthly DB instances and deleted pay-per-use DB instances to the recycle bin. You can rebuild a DB instance that was deleted up to 7 days ago from the recycle bin.
If resources are not renewed after expiration, you can rebuild DB instances from the recycle bin to restore data.
Constraints
- The recycle bin is free for use.
- Read replicas cannot be moved to the recycle bin.
- The recycle bin is enabled by default and cannot be disabled.
- After a DB instance is moved to the recycle bin, a full backup will be performed. You can rebuild the DB instance only after the full backup is complete.
Modifying Recycling Policy
Instances in the recycle bin are retained for 7 days by default. A new recycling policy only applies to DB instances that were put in the recycle bin after the new policy was put into effect. For DB instances that were in the recycle bin before the modification, the original recycling policy takes effect.
- Log in to the management console.
- Click in the upper left corner and select a region.
- Click in the upper left corner of the page and choose Databases > Relational Database Service.
- In the navigation pane on the left, choose Recycle Bin.
- On the Recycle Bin page, click Modify Recycling Policy. In the displayed dialog box, set the retention period for the deleted DB instances to 1 to 7 days.
- Then, click OK.
Figure 1 Modifying the recycling policy
Rebuilding a DB Instance
You can rebuild the primary DB instances in the recycle bin within the retention period.
- Log in to the management console.
- Click in the upper left corner and select a region.
- Click in the upper left corner of the page and choose Databases > Relational Database Service.
- In the navigation pane on the left, choose Recycle Bin.
- On the Recycle Bin page, locate the target DB instance to be rebuilt and click Rebuild in the Operation column.
- On the Rebuild DB Instance page, configure required information and submit the rebuild task. For details, see Restoring from Backup Files to RDS for PostgreSQL Instances.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot