mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 23:08:48 +00:00
gcloud: Thu May 30 09:26:18 UTC 2024
This commit is contained in:
parent
e617a432f4
commit
595ac8640a
232 changed files with 10919 additions and 274 deletions
85
gcloud/firestore/backups/schedules/create
Normal file
85
gcloud/firestore/backups/schedules/create
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
NAME
|
||||
gcloud firestore backups schedules create - creates a Cloud Firestore
|
||||
backup schedule
|
||||
|
||||
SYNOPSIS
|
||||
gcloud 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 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 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 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 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 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
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha firestore backups schedules create
|
||||
|
||||
$ gcloud beta firestore backups schedules create
|
||||
|
||||
47
gcloud/firestore/backups/schedules/delete
Normal file
47
gcloud/firestore/backups/schedules/delete
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
NAME
|
||||
gcloud firestore backups schedules delete - deletes a Cloud Firestore
|
||||
backup schedule
|
||||
|
||||
SYNOPSIS
|
||||
gcloud firestore backups schedules delete --backup-schedule=BACKUP_SCHEDULE
|
||||
--database=DATABASE [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
EXAMPLES
|
||||
To delete backup schedule 'cf9f748a-7980-4703-b1a1-d1ffff591db0' under
|
||||
database testdb.
|
||||
|
||||
$ gcloud firestore backups schedules delete --database='testdb' \
|
||||
--backup-schedule='cf9f748a-7980-4703-b1a1-d1ffff591db0'
|
||||
|
||||
REQUIRED FLAGS
|
||||
--backup-schedule=BACKUP_SCHEDULE
|
||||
The backup schedule to operate on.
|
||||
|
||||
For example, to operate on backup schedule
|
||||
091a49a0-223f-4c98-8c69-a284abbdb26b:
|
||||
|
||||
$ gcloud firestore backups schedules delete \
|
||||
--backup-schedule='091a49a0-223f-4c98-8c69-a284abbdb26b'
|
||||
|
||||
--database=DATABASE
|
||||
The database to operate on.
|
||||
|
||||
For example, to operate on database foo:
|
||||
|
||||
$ gcloud firestore backups schedules delete --database='foo'
|
||||
|
||||
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
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha firestore backups schedules delete
|
||||
|
||||
$ gcloud beta firestore backups schedules delete
|
||||
|
||||
48
gcloud/firestore/backups/schedules/describe
Normal file
48
gcloud/firestore/backups/schedules/describe
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
NAME
|
||||
gcloud firestore backups schedules describe - describes a Cloud Firestore
|
||||
backup schedule
|
||||
|
||||
SYNOPSIS
|
||||
gcloud firestore backups schedules describe
|
||||
--backup-schedule=BACKUP_SCHEDULE --database=DATABASE
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
EXAMPLES
|
||||
To describe backup schedule 'cf9f748a-7980-4703-b1a1-d1ffff591db0' under
|
||||
database testdb.
|
||||
|
||||
$ gcloud firestore backups schedules describe --database='testdb' \
|
||||
--backup-schedule='cf9f748a-7980-4703-b1a1-d1ffff591db0'
|
||||
|
||||
REQUIRED FLAGS
|
||||
--backup-schedule=BACKUP_SCHEDULE
|
||||
The backup schedule to operate on.
|
||||
|
||||
For example, to operate on backup schedule
|
||||
091a49a0-223f-4c98-8c69-a284abbdb26b:
|
||||
|
||||
$ gcloud firestore backups schedules describe \
|
||||
--backup-schedule='091a49a0-223f-4c98-8c69-a284abbdb26b'
|
||||
|
||||
--database=DATABASE
|
||||
The database to operate on.
|
||||
|
||||
For example, to operate on database foo:
|
||||
|
||||
$ gcloud firestore backups schedules describe --database='foo'
|
||||
|
||||
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
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha firestore backups schedules describe
|
||||
|
||||
$ gcloud beta firestore backups schedules describe
|
||||
|
||||
40
gcloud/firestore/backups/schedules/help
Normal file
40
gcloud/firestore/backups/schedules/help
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
NAME
|
||||
gcloud firestore backups schedules - manage the backup schedules for a
|
||||
Cloud Firestore Database
|
||||
|
||||
SYNOPSIS
|
||||
gcloud firestore backups schedules COMMAND [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Manage the backup schedules for a Cloud Firestore Database.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --help.
|
||||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
COMMANDS
|
||||
COMMAND is one of the following:
|
||||
|
||||
create
|
||||
Creates a Cloud Firestore backup schedule.
|
||||
|
||||
delete
|
||||
Deletes a Cloud Firestore backup schedule.
|
||||
|
||||
describe
|
||||
Describes a Cloud Firestore backup schedule.
|
||||
|
||||
list
|
||||
Lists backup schedules under a Cloud Firesore database.
|
||||
|
||||
update
|
||||
Updates a Cloud Firestore backup schedule.
|
||||
|
||||
NOTES
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha firestore backups schedules
|
||||
|
||||
$ gcloud beta firestore backups schedules
|
||||
|
||||
69
gcloud/firestore/backups/schedules/list
Normal file
69
gcloud/firestore/backups/schedules/list
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
NAME
|
||||
gcloud firestore backups schedules list - lists backup schedules under a
|
||||
Cloud Firesore database
|
||||
|
||||
SYNOPSIS
|
||||
gcloud firestore backups schedules list --database=DATABASE
|
||||
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
|
||||
[--sort-by=[FIELD,...]] [--uri] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
EXAMPLES
|
||||
To list all backup schedules under database testdb.
|
||||
|
||||
$ gcloud firestore backups schedules list --database='testdb'
|
||||
|
||||
REQUIRED FLAGS
|
||||
--database=DATABASE
|
||||
The database to operate on.
|
||||
|
||||
For example, to operate on database foo:
|
||||
|
||||
$ gcloud firestore backups schedules list --database='foo'
|
||||
|
||||
LIST COMMAND FLAGS
|
||||
--filter=EXPRESSION
|
||||
Apply a Boolean filter EXPRESSION to each resource item to be listed.
|
||||
If the expression evaluates True, then that item is listed. For more
|
||||
details and examples of filter expressions, run $ gcloud topic filters.
|
||||
This flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--limit=LIMIT
|
||||
Maximum number of resources to list. The default is unlimited. This
|
||||
flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--page-size=PAGE_SIZE
|
||||
Some services group resource list output into pages. This flag
|
||||
specifies the maximum number of resources per page. The default is
|
||||
determined by the service if it supports paging, otherwise it is
|
||||
unlimited (no paging). Paging may be applied before or after --filter
|
||||
and --limit depending on the service.
|
||||
|
||||
--sort-by=[FIELD,...]
|
||||
Comma-separated list of resource field key names to sort by. The
|
||||
default order is ascending. Prefix a field with ``~'' for descending
|
||||
order on that field. This flag interacts with other flags that are
|
||||
applied in this order: --flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--uri
|
||||
Print a list of resource URIs instead of the default output, and change
|
||||
the command output to a list of URIs. If this flag is used with
|
||||
--format, the formatting is applied on this URI list. To display URIs
|
||||
alongside other keys instead, use the uri() transform.
|
||||
|
||||
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
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha firestore backups schedules list
|
||||
|
||||
$ gcloud beta firestore backups schedules list
|
||||
|
||||
58
gcloud/firestore/backups/schedules/update
Normal file
58
gcloud/firestore/backups/schedules/update
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
NAME
|
||||
gcloud firestore backups schedules update - updates a Cloud Firestore
|
||||
backup schedule
|
||||
|
||||
SYNOPSIS
|
||||
gcloud firestore backups schedules update --backup-schedule=BACKUP_SCHEDULE
|
||||
--database=DATABASE [--retention=RETENTION] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
EXAMPLES
|
||||
To update backup schedule 'cf9f748a-7980-4703-b1a1-d1ffff591db0' under
|
||||
database testdb to 7 days retention.
|
||||
|
||||
$ gcloud firestore backups schedules update --database='testdb' \
|
||||
--backup-schedule='cf9f748a-7980-4703-b1a1-d1ffff591db0' \
|
||||
--retention='7d'
|
||||
|
||||
REQUIRED FLAGS
|
||||
--backup-schedule=BACKUP_SCHEDULE
|
||||
The backup schedule to operate on.
|
||||
|
||||
For example, to operate on backup schedule
|
||||
091a49a0-223f-4c98-8c69-a284abbdb26b:
|
||||
|
||||
$ gcloud firestore backups schedules update \
|
||||
--backup-schedule='091a49a0-223f-4c98-8c69-a284abbdb26b'
|
||||
|
||||
--database=DATABASE
|
||||
The database to operate on.
|
||||
|
||||
For example, to operate on database foo:
|
||||
|
||||
$ gcloud firestore backups schedules update --database='foo'
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--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 firestore backups schedules update --retention=7d
|
||||
|
||||
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
|
||||
These variants are also available:
|
||||
|
||||
$ gcloud alpha firestore backups schedules update
|
||||
|
||||
$ gcloud beta firestore backups schedules update
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue