Help Center> GaussDB(for MySQL)> User Guide> Instance Lifecycle Management> Rebuilding a Deleted Instance from Recycle Bin
Updated on 2024-05-21 GMT+08:00

Rebuilding a Deleted Instance from Recycle Bin

Unsubscribed yearly/monthly instances and deleted pay-per-use instances in the recycle bin can still be restored.

The recycle bin is enabled by default and cannot be disabled.

Modifying the Recycling Policy

The new recycling policy takes effect only for instances that are put into the recycle bin after the modification. For instances that already exist in the recycle bin before the modification, the original recycling policy takes effect.

  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, choose Databases > GaussDB(for MySQL).
  4. On the Recycle Bin page, click Modify Recycling Policy. In the displayed dialog box, set the retention period for the deleted DB instances (value range: 1 to 7 days).
  5. Click OK.

    Figure 1 Modifying the recycling policy

Rebuilding a DB Instance

You can rebuild instances from the recycle bin within the retention period.

  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, choose Databases > GaussDB(for MySQL).
  4. On the Recycle Bin page, locate the instance you want to rebuild and click Rebuild in the Operation column.
  5. On the Rebuild DB Instance page, configure required information and submit the task. For details, see Restoring Data to a DB Instance.