Evaluates whether the log backup retention period of a PolarDB cluster meets or exceeds the specified number of days.
Scenarios
Log backups support data restoration and disaster recovery. Set an appropriate retention period to balance recoverability against 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 log backup retention period of the PolarDB cluster meets or exceeds the specified number of days, the evaluation result is Compliant.
- If log backup is disabled for the PolarDB cluster, or the retention period is shorter than the specified number of days, the evaluation result is Incompliant. For more information about how to remediate an incompliant configuration, see the "Incompliance remediation" section of this topic.
Rule details
| Parameter | Description |
| Rule name | polardb-cluster-log-backup-retention |
| Rule identifier | polardb-cluster-log-backup-retention |
| Tag | PolarDB |
| Automatic remediation | Not supported |
| Trigger type | Periodic execution |
| Evaluation frequency | Every 24 hours |
| Supported resource type | PolarDB cluster |
| Input parameter | days: The default value is 30. |
Incompliance remediation
Enable log backup for the PolarDB cluster and make sure that the retention period meets or exceeds the specified number of days. For more information, see Configure backup policies.