Skip to content

Commit 8fa3a74

Browse files
docs: Document that the max allowed retention for Firestore backup schedules is 14 weeks (#10352) (#7178)
[upstream:2eb8f6688f5fd9cafa1c25bc83677306048aa966] Signed-off-by: Modular Magician <[email protected]>
1 parent 4b45735 commit 8fa3a74

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.changelog/10352.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/services/firestore/resource_firestore_backup_schedule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func ResourceFirestoreBackupSchedule() *schema.Resource {
6060
Description: `At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.
6161
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
6262
63-
For a daily backup recurrence, set this to a value up to 7 days. If you set a weekly backup recurrence, set this to a value up to 14 weeks.`,
63+
You can set this to a value up to 14 weeks.`,
6464
},
6565
"daily_recurrence": {
6666
Type: schema.TypeList,

google-beta/services/firestore/resource_firestore_backup_schedule_generated_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ resource "google_firestore_backup_schedule" "daily-backup" {
7474
project = "%{project_id}"
7575
database = google_firestore_database.database.name
7676
77-
retention = "604800s" // 7 days (maximum possible value for daily backups)
77+
retention = "8467200s" // 14 weeks (maximum possible retention)
7878
7979
daily_recurrence {}
8080
}
@@ -124,7 +124,7 @@ resource "google_firestore_backup_schedule" "weekly-backup" {
124124
project = "%{project_id}"
125125
database = google_firestore_database.database.name
126126
127-
retention = "8467200s" // 14 weeks (maximum possible value for weekly backups)
127+
retention = "8467200s" // 14 weeks (maximum possible retention)
128128
129129
weekly_recurrence {
130130
day = "SUNDAY"

website/docs/r/firestore_backup_schedule.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ resource "google_firestore_backup_schedule" "daily-backup" {
5353
project = "my-project-name"
5454
database = google_firestore_database.database.name
5555
56-
retention = "604800s" // 7 days (maximum possible value for daily backups)
56+
retention = "8467200s" // 14 weeks (maximum possible retention)
5757
5858
daily_recurrence {}
5959
}
@@ -76,7 +76,7 @@ resource "google_firestore_backup_schedule" "weekly-backup" {
7676
project = "my-project-name"
7777
database = google_firestore_database.database.name
7878
79-
retention = "8467200s" // 14 weeks (maximum possible value for weekly backups)
79+
retention = "8467200s" // 14 weeks (maximum possible retention)
8080
8181
weekly_recurrence {
8282
day = "SUNDAY"
@@ -93,7 +93,7 @@ The following arguments are supported:
9393
(Required)
9494
At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.
9595
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
96-
For a daily backup recurrence, set this to a value up to 7 days. If you set a weekly backup recurrence, set this to a value up to 14 weeks.
96+
You can set this to a value up to 14 weeks.
9797

9898

9999
- - -

0 commit comments

Comments
 (0)