Skip to content

Aurora continuous backup (PITR) retention stuck at 35 days after lowering it to 14 in the backup plan

0

We use AWS Backup continuous backups (PITR) for an Aurora PostgreSQL cluster. A month ago we lowered the continuous backup rule's retention from 35 to 14 days in the backup plan (deployed via CloudFormation/CDK).

Daily backup jobs complete successfully under the updated rule, but:

  • The continuous recovery point still shows Lifecycle.DeleteAfterDays: 35
  • The cluster still shows BackupRetentionPeriod: 35, and EarliestRestorableTime is still about 35 days back

What we noticed: the plan updates replaced the rule, so it has a new rule ID. The recovery point's CreatedBy.BackupRuleId still points to the original rule, which no longer exists in the plan. The new rule's jobs reuse the same recovery point but don't update its lifecycle.

What we've ruled out:

  • update-recovery-point-lifecycle doesn't support continuous backups.
  • Changing BackupRetentionPeriod on the cluster is rejected while AWS Backup manages it.

Questions:

  1. Is a recovery point tied to a removed rule expected to ignore the new rule's retention?
  2. Is there a supported way to apply the new retention to the existing recovery point without deleting or disassociating it? We need to keep the existing point-in-time restore history.

Thanks!

2 Answers
0

When you modify a continuous backup rule in AWS Backup, the behavior you're experiencing is expected. The retention period change takes effect when the next backup is completed following the modification. However, for Aurora continuous backups specifically, the existing recovery point is updated with the new retention settings rather than creating a new recovery point.

Regarding your specific situation:

  1. The recovery point being tied to the removed rule while showing the old retention is likely a timing issue. The retention change should apply to the existing continuous recovery point for Aurora, but this update occurs during the next backup cycle after the rule modification.

  2. For Aurora continuous backups, you cannot use the update-recovery-point-lifecycle API to manually change retention - this is correct, as that API doesn't support continuous backups. The retention must be managed through your backup plan.

To address your issue:

Since you've already updated the backup plan and daily jobs are completing successfully, the new 14-day retention should eventually take effect on the existing recovery point. The fact that the recovery point still references the old rule ID may be a display artifact, but the actual retention behavior should follow the active backup plan's rule.

If the retention hasn't updated after several backup cycles, verify that:

  • Only one continuous backup rule exists for this Aurora cluster across all backup plans
  • No other backup policies or plans are creating duplicate continuous backups for the same resource
  • The backup plan change was fully deployed and the rule is active

If multiple continuous backup rules exist for the same resource, AWS Backup follows the rule with the longest retention period and ignores subsequent rules. This could explain why the 35-day retention persists despite your plan showing 14 days.

You should not need to delete or disassociate the recovery point - the existing point-in-time restore history will be maintained, but the retention window will gradually shift to reflect the new 14-day period as older restore points age out.
Sources
Continuous backups and point-in-time recovery (PITR) - AWS Backup
Changing your retention period - AWS Backup

answered 14 days ago

0

AWS's documentation explains why the old retention would stick, but it doesn't say whether a job under the new rule should then update it. I couldn't find a documented, self-service way to change retention on an existing continuous recovery point. Open a Support case before you disassociate anything.

1. Is this expected?

Partly. Two documented behaviors combine to produce what you're seeing.

Retention changes are meant to be made on the existing rule. The docs say you can raise or lower retention for your existing continuous backup rule, and the change takes effect after the next backup completes. For Aurora and RDS, AWS Backup doesn't create a new recovery point when retention changes. It updates the existing one with the retention in the backup plan. Your update didn't modify the rule. It replaced it, so the rule that recovery point belongs to was deleted.

Deleted rules keep their retention. The "Stopping or deleting continuous backups" page says AWS Backup remembers the retention period of a deleted continuous backup rule and uses it to delete the recovery point later. Your CreatedBy.BackupRuleId pointing at the removed rule, with DeleteAfterDays: 35, matches that.

What the docs don't cover is your exact case: a new rule's jobs attach to the same recovery point but leave its lifecycle unchanged. You could argue either way, that it's intended or that it's a bug. AWS Support can tell you which.

2. Applying 14 days without deleting or disassociating

I couldn't find a supported way to do this yourself. Your findings match the docs: retention must be changed through the backup plan, and UpdateRecoveryPointLifecycle can't be used on continuous backups. Here are the options, in the order I'd try them:

  1. Open a Support case (the path that keeps your history). Include the recovery point ARN, the old and new rule IDs, the job IDs completed under the new rule, and the doc statement that Aurora recovery points are updated with the plan's retention. Ask them to confirm whether this is a bug and whether they can re-link the recovery point to the new rule or apply its lifecycle on the backend.

  2. Check why the rule was replaced, so it doesn't happen again. Compare the old and new rule definitions, especially RuleName. If your CDK code generates rule names, or the names depend on the rules' order, a retention-only change can come out as a new rule instead of an update. Keep rule names stable and explicit, and diff the synthesized template before deploying. This won't fix the current recovery point, but it prevents the same problem next time.

  3. Last resort: disassociate and set retention on the cluster. Disassociating hands PITR back to Aurora, which should make BackupRetentionPeriod editable again, so you could set it to 14. You only want 14 days in the end, so losing days 15 to 35 is the intended outcome anyway. But two things are unconfirmed in the docs: whether the last 14 days stay restorable, and what the next AWS Backup job does when it takes the cluster back over. Don't do this on production until you've reproduced it on a test cluster.

Reproduce it first

A small test cluster will answer the bug question and test option 3 safely:

  1. Put the cluster under a continuous backup rule with 35-day retention and let a job complete.
  2. Replace the rule with a 14-day one, changing RuleName so it gets a new rule ID. Let another job complete.
  3. Check DeleteAfterDays and CreatedBy.BackupRuleId.
  4. Disassociate, set the cluster's retention to 14, then check EarliestRestorableTime and what the next backup job does.

If step 3 reproduces your problem, attach the results to the Support case.

EXPERT

answered 14 days ago

EXPERT

reviewed 14 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.