Skip to content

Commit

Permalink
Merge pull request #61 from sparkfabrik/fix_db_backup
Browse files Browse the repository at this point in the history
refs #000: Fix Point in Time Recovery Postgresql Behaviour
  • Loading branch information
Syphon83 authored Sep 19, 2023
2 parents 14fd263 + f92da16 commit ace15f8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@ resource "google_sql_database_instance" "gitlab_db" {
}

backup_configuration {
enabled = var.postgresql_enable_backup
start_time = var.postgresql_backup_start_time
point_in_time_recovery_enabled = true
enabled = var.postgresql_enable_backup
start_time = var.postgresql_backup_start_time
# Enable/Disable Point in Time Recovery according to Postgresql Backup
point_in_time_recovery_enabled = var.postgresql_enable_backup
backup_retention_settings {
retained_backups = var.postgresql_backup_retained_count
}
Expand Down

0 comments on commit ace15f8

Please sign in to comment.