1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-09 02:55:19 +00:00
gcloud-help/gcloud/beta/firestore/export
2022-03-01 04:29:52 +00:00

65 lines
2 KiB
Text

NAME
gcloud beta firestore export - export Cloud Firestore documents to Google
Cloud Storage
SYNOPSIS
gcloud beta firestore export OUTPUT_URI_PREFIX [--async]
[--collection-ids=[COLLECTION_IDS,...]] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) export Cloud Firestore documents to Google Cloud Storage
EXAMPLES
To export all collection groups to mybucket in objects prefixed with
my/path, run:
$ gcloud beta firestore export gs://mybucket/my/path
To export a specific set of collections groups asynchronously, run:
$ gcloud beta firestore export gs://mybucket/my/path \
--collection-ids='specific collection group1','specific
collection group2' --async
POSITIONAL ARGUMENTS
OUTPUT_URI_PREFIX
Location where the export files will be stored. Must be a valid Google
Cloud Storage bucket with an optional path prefix.
For example:
$ gcloud beta firestore export gs://mybucket/my/path
Will place the export in the mybucket bucket in objects prefixed with
my/path.
FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
--collection-ids=[COLLECTION_IDS,...]
A list specifying which collections will be included in the operation.
When omitted, all collections are included.
For example, to operate on only the 'customers' and 'orders'
collections:
$ gcloud beta firestore export --collection-ids='customers','orders'
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 beta and might change without notice. These
variants are also available:
$ gcloud firestore export
$ gcloud alpha firestore export