- NAME
-
- gcloud alpha firestore backups schedules create - creates a Cloud Firestore backup schedule
- SYNOPSIS
-
-
gcloud alpha firestore backups schedules create
--database
=DATABASE
--retention
=RETENTION
(--recurrence
=RECURRENCE
:--day-of-week
=DAY_OF_WEEK
) [GCLOUD_WIDE_FLAG …
]
-
- EXAMPLES
-
To create a backup schedule with 7 days retention and daily recurrence under
database testdb.
gcloud alpha firestore backups schedules create --database=testdb --retention=7d --recurrence=daily
To create a backup schedule with 7 days retention and weekly recurrence on Monday under database testdb.
gcloud alpha firestore backups schedules create --database=testdb --retention=7d --recurrence=weekly --day-of-week=MON
- REQUIRED FLAGS
-
--database
=DATABASE
-
The database to operate on.
For example, to operate on database
foo
:gcloud alpha firestore backups schedules create --database='foo'
--retention
=RETENTION
-
The rention of the backup. At what relative time in the future, compared to the
creation time of the backup should the backup be deleted, i.e. keep backups for
7 days.
For example, to set retention as 7 days.
gcloud alpha firestore backups schedules create --retention=7d
-
Recurrence settings of a backup schedule.
This must be specified.
--recurrence
=RECURRENCE
-
The recurrence settings of a backup schedule.
Currently only daily and weekly backup schedules are supported.
When a weekly backup schedule is created, day-of-week is needed.
For example, to create a weekly backup schedule which creates backups on Monday.
gcloud alpha firestore backups schedules create --recurrence=weekly --day-of-week=MON
This flag argument must be specified if any of the other arguments in this group are specified.
--day-of-week
=DAY_OF_WEEK
-
The day of week (UTC time zone) of when backups are created.
The available values are: `MON`, `TUE`, `WED`, `THU`, `FRI`, `SAT`,`SUN`. Values are case insensitive.
This is required when creating a weekly backup schedule.
DAY_OF_WEEK
must be one of:SUN
,MON
,TUE
,WED
,THU
,FRI
,SAT
.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file
,--account
,--billing-project
,--configuration
,--flags-file
,--flatten
,--format
,--help
,--impersonate-service-account
,--log-http
,--project
,--quiet
,--trace-token
,--user-output-enabled
,--verbosity
.Run
$ gcloud help
for details. - NOTES
-
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. These variants are also available:
gcloud firestore backups schedules create
gcloud beta firestore backups schedules create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-29 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-05-29 UTC.",
"state": ""
}