Skip to content

Commit 01214e0

Browse files
niharika-98FilipKubawskiOktaliuce-roaks3zli82016
authored
Update backup schedule to yearly to avoid any flakiness in future (#14245)
Signed-off-by: Cezary Sobczak <[email protected]> Co-authored-by: FilipKubawskiOkta <[email protected]> Co-authored-by: Calvin Liu <[email protected]> Co-authored-by: Ryan Oaks <[email protected]> Co-authored-by: Zhenhua Li <[email protected]> Co-authored-by: Ramon Vermeulen <[email protected]> Co-authored-by: Sepehr Javid <[email protected]> Co-authored-by: Riley Karson <[email protected]> Co-authored-by: Thomas Rodgers <[email protected]> Co-authored-by: Shuya Ma <[email protected]> Co-authored-by: Cezary Sobczak <[email protected]> Co-authored-by: Dawid212 <[email protected]> Co-authored-by: Arnav Dham <[email protected]> Co-authored-by: Matheus Guilherme Souza Aleixo <[email protected]>
1 parent 5606def commit 01214e0

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

mmv1/third_party/terraform/services/backupdr/resource_backup_dr_backup_plan_association_test.go

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,17 @@ resource "google_backup_dr_backup_plan" "foo" {
111111
112112
backup_rules {
113113
rule_id = "rule-1"
114-
backup_retention_days = 2
114+
backup_retention_days = 366
115115
116116
standard_schedule {
117-
recurrence_type = "HOURLY"
118-
hourly_frequency = 6
119-
time_zone = "UTC"
117+
recurrence_type = "YEARLY"
118+
months = ["JANUARY"]
119+
days_of_month = [15]
120+
time_zone = "UTC"
120121
121122
backup_window {
122-
start_hour_of_day = 0
123-
end_hour_of_day = 6
123+
start_hour_of_day = 2 # Backup starts at 2:00 AM UTC
124+
end_hour_of_day = 8 # Optional, backup window ends at 3:00 AM
124125
}
125126
}
126127
}
@@ -199,16 +200,17 @@ resource "google_backup_dr_backup_plan" "updated-bp" {
199200
200201
backup_rules {
201202
rule_id = "rule-1"
202-
backup_retention_days = 4
203+
backup_retention_days = 366
203204
204205
standard_schedule {
205-
recurrence_type = "HOURLY"
206-
hourly_frequency = 10
207-
time_zone = "UTC"
206+
recurrence_type = "YEARLY"
207+
months = ["JANUARY"]
208+
days_of_month = [15]
209+
time_zone = "UTC"
208210
209211
backup_window {
210-
start_hour_of_day = 0
211-
end_hour_of_day = 6
212+
start_hour_of_day = 2 # Backup starts at 2:00 AM UTC
213+
end_hour_of_day = 8 # Optional, backup window ends at 3:00 AM
212214
}
213215
}
214216
}
@@ -222,16 +224,17 @@ resource "google_backup_dr_backup_plan" "foo" {
222224
223225
backup_rules {
224226
rule_id = "rule-1"
225-
backup_retention_days = 2
227+
backup_retention_days = 366
226228
227229
standard_schedule {
228-
recurrence_type = "HOURLY"
229-
hourly_frequency = 6
230-
time_zone = "UTC"
230+
recurrence_type = "YEARLY"
231+
months = ["JANUARY"]
232+
days_of_month = [15]
233+
time_zone = "UTC"
231234
232235
backup_window {
233-
start_hour_of_day = 0
234-
end_hour_of_day = 6
236+
start_hour_of_day = 2 # Backup starts at 2:00 AM UTC
237+
end_hour_of_day = 8 # Optional, backup window ends at 3:00 AM
235238
}
236239
}
237240
}

0 commit comments

Comments
 (0)