File tree Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Original file line number Diff line number Diff line change @@ -127,16 +127,17 @@ resource "google_backup_dr_backup_plan" "foo" {
127
127
128
128
backup_rules {
129
129
rule_id = "rule-1"
130
- backup_retention_days = 2
130
+ backup_retention_days = 366
131
131
132
132
standard_schedule {
133
- recurrence_type = "HOURLY"
134
- hourly_frequency = 6
135
- time_zone = "UTC"
133
+ recurrence_type = "YEARLY"
134
+ months = ["JANUARY"]
135
+ days_of_month = [15]
136
+ time_zone = "UTC"
136
137
137
138
backup_window {
138
- start_hour_of_day = 0
139
- end_hour_of_day = 6
139
+ start_hour_of_day = 2 # Backup starts at 2:00 AM UTC
140
+ end_hour_of_day = 8 # Optional, backup window ends at 3:00 AM
140
141
}
141
142
}
142
143
}
@@ -215,16 +216,17 @@ resource "google_backup_dr_backup_plan" "updated-bp" {
215
216
216
217
backup_rules {
217
218
rule_id = "rule-1"
218
- backup_retention_days = 4
219
+ backup_retention_days = 366
219
220
220
221
standard_schedule {
221
- recurrence_type = "HOURLY"
222
- hourly_frequency = 10
223
- time_zone = "UTC"
222
+ recurrence_type = "YEARLY"
223
+ months = ["JANUARY"]
224
+ days_of_month = [15]
225
+ time_zone = "UTC"
224
226
225
227
backup_window {
226
- start_hour_of_day = 0
227
- end_hour_of_day = 6
228
+ start_hour_of_day = 2 # Backup starts at 2:00 AM UTC
229
+ end_hour_of_day = 8 # Optional, backup window ends at 3:00 AM
228
230
}
229
231
}
230
232
}
@@ -238,16 +240,17 @@ resource "google_backup_dr_backup_plan" "foo" {
238
240
239
241
backup_rules {
240
242
rule_id = "rule-1"
241
- backup_retention_days = 2
243
+ backup_retention_days = 366
242
244
243
245
standard_schedule {
244
- recurrence_type = "HOURLY"
245
- hourly_frequency = 6
246
- time_zone = "UTC"
246
+ recurrence_type = "YEARLY"
247
+ months = ["JANUARY"]
248
+ days_of_month = [15]
249
+ time_zone = "UTC"
247
250
248
251
backup_window {
249
- start_hour_of_day = 0
250
- end_hour_of_day = 6
252
+ start_hour_of_day = 2 # Backup starts at 2:00 AM UTC
253
+ end_hour_of_day = 8 # Optional, backup window ends at 3:00 AM
251
254
}
252
255
}
253
256
}
You can’t perform that action at this time.
0 commit comments