1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 10:35:03 +00:00
gcloud-help/gcloud/alpha/sql/export/bak

75 lines
2.7 KiB
Text
Raw Normal View History

2022-03-01 04:29:52 +00:00
NAME
gcloud alpha sql export bak - export data from a Cloud SQL instance to a
BAK file
SYNOPSIS
gcloud alpha sql export bak INSTANCE URI
--database=DATABASE,[DATABASE,...], -d DATABASE,[DATABASE,...]
2023-06-02 10:25:45 +00:00
[--async] [--bak-type=BAK_TYPE; default="FULL"] [--differential-base]
[--stripe_count=STRIPE_COUNT] [--[no-]striped] [GCLOUD_WIDE_FLAG ...]
2022-03-01 04:29:52 +00:00
DESCRIPTION
(ALPHA) Export data from a Cloud SQL instance to a Google Cloud Storage
2022-03-30 09:07:09 +00:00
bucket as a BAK backup file. This is only supported for SQL Server.
2022-03-01 04:29:52 +00:00
EXAMPLES
To export data from the database my-database in the Cloud SQL instance
my-instance to a BAK file my-bucket/my-export.bak, run:
$ gcloud alpha sql export bak my-instance \
gs://my-bucket/my-export.bak --database=my-database
POSITIONAL ARGUMENTS
INSTANCE
Cloud SQL instance ID.
URI
The path to the file in Google Cloud Storage where the export will be
stored. The URI is in the form gs://bucketName/fileName. If the file
already exists, the operation fails.
REQUIRED FLAGS
--database=DATABASE,[DATABASE,...], -d DATABASE,[DATABASE,...]
Database from which the export is made. Information on requirements can
be found here:
https://cloud.google.com/sql/docs/sqlserver/admin-api/v1beta4/instances/export#exportContext.databases
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
2023-06-02 10:25:45 +00:00
--bak-type=BAK_TYPE; default="FULL"
Type of bak file that will be exported, FULL or DIFF. SQL Server only.
BAK_TYPE must be one of: FULL, DIFF.
--differential-base
Whether the bak file export can be used as differential base for future
differential backup. SQL Server only
2023-01-19 00:56:33 +00:00
--stripe_count=STRIPE_COUNT
Specifies the number of stripes to use for SQL Server exports.
--[no-]striped
Whether SQL Server export should be striped. Use --striped to enable
and --no-striped to disable.
2022-03-01 04:29:52 +00:00
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 sql export bak
$ gcloud beta sql export bak