Evaluates whether the retention period of level-2 backups for a PolarDB cluster meets or exceeds the specified number of days.
Scenarios
Level-2 backups support data restoration and disaster recovery. Set an appropriate retention period to balance data protection with backup storage costs.
Risk level
Default risk level: medium.
You can change the risk level based on your business requirements when you apply this rule.
Compliance evaluation logic
- If the retention period of the level-2 backups of the PolarDB cluster is longer than or equal to the specified number of days, the evaluation result is Compliant.
- If the level-2 backup feature is disabled for the PolarDB cluster, the evaluation result is Incompliant. If the feature is enabled but the retention period is shorter than the specified number of days, the evaluation result is also Incompliant. For more information, see the "Incompliance remediation" section of this topic.
Rule details
| Parameter | Description |
| Rule name | polardb-cluster-level-two-backup-retention |
| Rule identifier | polardb-cluster-level-two-backup-retention |
| Tag | PolarDB |
| Automatic remediation | Not supported |
| Trigger type | Periodic execution |
| Evaluation frequency | Interval of 24 hours |
| Supported resource type | PolarDB cluster |
| Input parameter | days: The default value is 30. |
Incompliance remediation
Enable the level-2 backup feature for the PolarDB cluster and ensure that the retention period meets or exceeds the specified number of days. For more information, see Configure backup policies.