Troubleshooting a Backup plan with multiple backup rules -- are not working?

0

I have a requirement to run backup jobs using different rules. Currently, I am testing two rules to understand how they work and if all backup jobs are being captured. My goal is to create a backup plan for RDS (Amazon Relational Database Service).

Here are the two rules I am testing:

Rule 1:

Backup job runs every 2 hours with a 7-day retention period.
It starts within 1 hour of being triggered.
It completes within 3 hours.

Rule 2:

Backup job runs every 2 hours with a 35-day retention period.
It starts within 3 hours and 5 minutes of being triggered.
It completes within 5 hours.

I have added these two backup rules to the backup plan. However, when I checked the next day, I noticed that only the backup jobs with Rule 2 were running. To further investigate the issue, I decided to test another rule.

Rule 3:

Backup job should run every Saturday at 10:00 PM with a 168-day retention period.
It starts within 1 hour and 5 minutes of being triggered.
It completes within 7 hours.

After a week had passed, I checked on Saturday, but I still only saw backup jobs running with Rule 2. I don't see any backups with Rule1 and Rule3.

I have verified that the Terraform code and IAM rules are set up correctly. However, I'm unable to understand what exactly is happening here. I'm wondering if there is a logic issue that I might be missing. I would appreciate any insights or thoughts you may have on this matter.

rk
asked 10 months ago586 views
1 Answer
2

This issue seems to be related to overlapping rule:

If you have a backup plan with multiple rules if the time frame of the two rules overlap, AWS Backup optimizes the backup and takes a backup for the rule with the longer retention time. The optimization takes into account the full start window, not just when the daily backup is taken.

I suggest you ensure that the Rule 1 and Rule 3 backup time does not clash with the hourly backup time.

Reference: Creating a backup plan - Backup rules - https://docs.aws.amazon.com/aws-backup/latest/devguide/creating-a-backup-plan.html#backup-rules

profile pictureAWS
answered 10 months 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.

Guidelines for Answering Questions