Skip to content

Conversation

@diablo02000
Copy link
Contributor

Description:

When creating Backup Cloud SQL, the predifined backup_retention_settings are the following

backup_configuration {
  backup_retention_settings {
    retained_backups = 7
    retention_unit   = "COUNT"
  }
}

Issue:

If transaction_log_retention_days is set to a value greater than the number of retained_backups, the following error occurs:

Error, failed to update instance settings for : googleapi: Error 400: Invalid request: backup retention should be > transaction log retention., invalid

Proposed Fix:

Update retained_backups value when transaction_log_retention_days is greater that predefined value (predefined: 7).

@diablo02000 diablo02000 requested review from a team, ayushmjain, imrannayer and q2w as code owners October 30, 2025 15:02
@diablo02000 diablo02000 force-pushed the fix/backup_retention_settings_on_replica branch from 659ad2e to b1b5fce Compare October 30, 2025 15:50
@diablo02000 diablo02000 force-pushed the fix/backup_retention_settings_on_replica branch from b1b5fce to 183384d Compare October 30, 2025 15:51
@imrannayer
Copy link
Collaborator

/gcbrun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants