File tree Expand file tree Collapse file tree 1 file changed +21
-18
lines changed
google-beta/services/backupdr 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" {
127127
128128 backup_rules {
129129 rule_id = "rule-1"
130- backup_retention_days = 2
130+ backup_retention_days = 366
131131
132132 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"
136137
137138 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
140141 }
141142 }
142143 }
@@ -215,16 +216,17 @@ resource "google_backup_dr_backup_plan" "updated-bp" {
215216
216217 backup_rules {
217218 rule_id = "rule-1"
218- backup_retention_days = 4
219+ backup_retention_days = 366
219220
220221 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"
224226
225227 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
228230 }
229231 }
230232 }
@@ -238,16 +240,17 @@ resource "google_backup_dr_backup_plan" "foo" {
238240
239241 backup_rules {
240242 rule_id = "rule-1"
241- backup_retention_days = 2
243+ backup_retention_days = 366
242244
243245 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"
247250
248251 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
251254 }
252255 }
253256 }
You can’t perform that action at this time.
0 commit comments