This rule ensures that backup recovery points are retained for the required duration to meet data retention policies.
Rule | Backup recovery points should not expire before retention period |
Framework | CISA-cyber-essentials |
Severity | ✔ Low |
Rule Description: Backup Recovery Points Expiry Should Not Occur Before Retention Period for CISA Cyber Essentials
This rule ensures that the backup recovery points for CISA Cyber Essentials compliant systems do not expire before the defined retention period. It helps maintain the integrity and availability of critical data by ensuring that the backups are retained for a specified period to facilitate effective recovery.
Troubleshooting Steps:
Necessary Codes:
If using a backup software system that allows scripting or automation, the following code can be used to check and enforce the retention period:
Example using PowerShell:
$RetentionPeriod = 30 # Define the retention period in days
$RecoveryPoints = Get-BackupRecoveryPoints # Replace with appropriate cmdlet to retrieve recovery points
foreach ($RecoveryPoint in $RecoveryPoints) {
$ExpiryDate = $RecoveryPoint.ExpiryDate
$RetentionEndDate = (Get-Date).AddDays(-$RetentionPeriod)
if ($ExpiryDate -lt $RetentionEndDate) {
Remove-BackupRecoveryPoint -Id $RecoveryPoint.Id # Replace with appropriate cmdlet to remove recovery point
}
}
Step-by-Step Guide for Remediation:
Follow these steps to ensure that backup recovery points do not expire before the defined retention period:
Note: The provided example code is based on PowerShell and may require modification to fit the specific backup software being used. Refer to the software's documentation for the appropriate cmdlets or APIs to manage backup recovery points.