gcloud_alpha_datastore_export (1)
NAME
- gcloud alpha datastore export - export Cloud Datastore entities to Google Cloud Storage
SYNOPSIS
-
gcloud alpha datastore export OUTPUT_URL_PREFIX [--async] [--kinds=[KIND,...]] [--namespaces=[NAMESPACE,...]] [--operation-labels=[OPERATION_LABEL,...]] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) Export a copy of all or a subset of entities from Google Cloud
POSITIONAL ARGUMENTS
-
- OUTPUT_URL_PREFIX
-
Location for the export metadata and data files. Must be a valid Google Cloud
Storage bucket with an optional path prefix. For example:
- $ gcloud alpha datastore export gs://mybucket/my/path
Will place the export in the mybucket bucket in objects prefixed with my/path.
FLAGS
-
- --async
-
Display information about the operation in progress, without waiting for the
operation to complete.
- --kinds=[KIND,...]
-
A list specifying what kinds will be included in the operation. When omitted,
all Kinds are included. For example, to operate on only the 'Customer' and
'Order' Kinds:
- $ gcloud alpha datastore export --kinds='Customer','Order'
- --namespaces=[NAMESPACE,...]
-
A list specifying what namespaces will be included in the operation. When
omitted, all namespaces are included in the operation, including the default
namespace. To specify that only the default namespace should be operated
on, use the special symbol '(default)'. For example, to operate on entities from
both the 'customers' and default namespaces:
- $ gcloud alpha datastore export --namespaces='(default)','customers'
- --operation-labels=[OPERATION_LABEL,...]
-
A string:string map of custom labels to associate with this operation. For
example:
-
$ gcloud alpha datastore export \
--operation-labels=comment='customer orders','sales rep'=pending
-
$ gcloud alpha datastore export \
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support These variants are also available:
- $ gcloud datastore export $ gcloud beta datastore export