- Newest
- Most votes
- Most comments
As described in this document, this may occur when an RDS maintenance period or RDS automatic backup period approaches.
Assuming that the backups themselves are managed correctly by AWS Backup, I thought it necessary to check the maintenance windows, etc.
https://repost.aws/knowledge-center/aws-backup-troubleshoot-scheduled-backup-plans
This can happen when the RDS maintenance window or the RDS automated backup window is approaching. In AWS Backup, RDS backups aren't allowed within an hour before the RDS maintenance window or the RDS automated backup window. Therefore, be sure that your backup plans for RDS databases are scheduled more than an hour apart from the RDS maintenance window and the RDS automated backup window. This time frame is extended to 4 hours for Amazon FSx.
"If you manage your backups in AWS Backup, you can't enable automated backups. For more information, see Using AWS Backup to manage automated backups." https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow
Maybe try and disable the automated backups and see if you can then enable AWS Backup?
As far as I can tell, the RDS automated backups are disabled. When I try to set the
backup-retention-period
to0
using the CLI I get the following message> aws rds modify-db-instance --db-instance-identifier <instance-identifier> --backup-retention-period 0 An error occurred (InvalidParameterValue) when calling the ModifyDBInstance operation: Your RDS instance <instance-identifier> is associated with an AWS Backup resource with id <resource-arn>. You can leave BackupRetentionPeriod blank, or you can specify it only with the current value 30. For more details, see the AWS Backup documentation.
A value of 30 matches the retention period set by AWS Backup using the resource tagging strategy.
Therefore, be sure that your backup plans for RDS databases are scheduled more than an hour apart from the RDS maintenance window and the RDS automated backup window.
The automated backup windows are listed here per region https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow
Relevant content
- asked 6 years ago
- asked 3 years ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
The maintenance window for one of the databases is set to
Monday, 00:00 UTC
with a duration of3 hours
. I don't think this should cause backups to fail every day. I can't seem to find the Backup Window settings in the RDS console as the backup is manged by AWS Backup as per the message in theBackup
section on theModify
page.Please use the following AWS CLI to check if the backup window is not configured on the RDS side. In rare cases, the contents of the management console and AWS CLI may differ, so it is a good idea to check.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/describe-db-instances.html
It sure looks like there is a backup window configured when using above command. As I don't think you can set the backup window to
null
should we just try to find a time during mid-day when we're sure no backup plans from AWS Backup would run? And can we make sure RDS doesn't suddently schedule a backup during this time?We tried changing the backup window to midday but it seems to have reverted during the weekend. The
BackupRetentionPeriod
is controlled by AWS Backup and matches our backup plan.