mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 06:47:12 +00:00
gcloud: Thu Jul 17 11:02:31 UTC 2025
This commit is contained in:
parent
e53f7148d8
commit
fe3a430c1d
365 changed files with 6027 additions and 1863 deletions
|
|
@ -5,7 +5,7 @@ NAME
|
|||
SYNOPSIS
|
||||
gcloud beta firestore databases restore
|
||||
--destination-database=DESTINATION_DATABASE
|
||||
--source-backup=SOURCE_BACKUP
|
||||
--source-backup=SOURCE_BACKUP [--tags=[KEY=VALUE,...]]
|
||||
[--encryption-type=ENCRYPTION_TYPE : --kms-key-name=KMS_KEY_NAME]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
|
|
@ -16,6 +16,13 @@ EXAMPLES
|
|||
--source-backup=projects/PROJECT_ID/locations/LOCATION_ID/\
|
||||
backups/BACKUP_ID --destination-database=DATABASE_ID
|
||||
|
||||
To restore a database from a backup with tags.
|
||||
|
||||
$ gcloud beta firestore databases restore \
|
||||
--source-backup=projects/PROJECT_ID/locations/LOCATION_ID/\
|
||||
backups/BACKUP_ID --destination-database=DATABASE_ID \
|
||||
--tags=key1=value1,key2=value2
|
||||
|
||||
To restore to a CMEK-enabled database.
|
||||
|
||||
$ gcloud beta firestore databases restore \
|
||||
|
|
@ -32,8 +39,7 @@ REQUIRED FLAGS
|
|||
|
||||
This value should be 4-63 characters. Valid characters are
|
||||
/[a-z][0-9]-/ with first character a letter and the last a letter or a
|
||||
number. Must not be UUID-like
|
||||
/[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
|
||||
number. Must not be UUID-like /[0-9a-f]8(-[0-9a-f]4)3-[0-9a-f]12/.
|
||||
|
||||
Using "(default)" database ID is also allowed.
|
||||
|
||||
|
|
@ -53,6 +59,14 @@ REQUIRED FLAGS
|
|||
cf9f748a-7980-4703-b1a1-d1ffff591db0
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--tags=[KEY=VALUE,...]
|
||||
Tags to attach to the destination database. Example:
|
||||
--tags=key1=value1,key2=value2
|
||||
|
||||
For example, to attach tags to a database:
|
||||
|
||||
$ --tags=key1=value1,key2=value2
|
||||
|
||||
The encryption configuration of the new database being created from the
|
||||
backup. If not specified, the same encryption settings as the backup will
|
||||
be used.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue