- NAME
- gcloud-sql-instances-export - Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a MySQL dump file.
- SYNOPSIS
-
gcloud sql instances export INSTANCE [--database DATABASE [DATABASE …], -d DATABASE [DATABASE …]] [--format FORMAT] [--help] [--project PROJECT] [--quiet, -q] [--table TABLE [TABLE …], -t TABLE [TABLE …]] --uri URI, -u URI [-h]
- POSITIONAL ARGUMENTS
-
-
INSTANCE
- Cloud SQL instance ID.
-
- FLAGS
-
-
--database
DATABASE [DATABASE …]
- Database (for example, guestbook) from which the export is made. If unspecified, all databases are exported.
-
--format
FORMAT
- Specify a format for printed output. By default, a command-specific human-friendly output format is used. Setting this flag to one of the available options will serialize the result of the command in the chosen format and print it to stdout. Supported formats are: "json", "text", "yaml".
-
--help
- Display detailed help.
-
--project
PROJECT
- Google Cloud Platform project to use for this invocation.
-
--quiet
- Disable all interactive prompts when running gcloud commands. If input is required, defaults will be used, or an error will be raised.
-
--table
TABLE [TABLE …]
- Tables to export from the specified database. If you specify tables, specify one and only one database.
-
--uri
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. If the filename ends with .gz, the contents are compressed.
-
-h
- Print a summary help and exit.
-
gcloud sql instances export
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License , and code samples are licensed under the Apache 2.0 License . For details, see our Site Policies .
Last updated August 11, 2014.