mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-19 07:15:23 +00:00
gcloud: Wed Aug 9 11:23:49 UTC 2023
This commit is contained in:
parent
678b9afba9
commit
19bfacfbed
148 changed files with 2955 additions and 379 deletions
74
gcloud/alpha/spanner/migrate/data
Normal file
74
gcloud/alpha/spanner/migrate/data
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
NAME
|
||||
gcloud alpha spanner migrate data - migrate data from a source database to
|
||||
Cloud Spanner given a schema
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha spanner migrate data --session=SESSION --source=SOURCE
|
||||
[--dry-run] [--log-level=LOG_LEVEL] [--prefix=PREFIX]
|
||||
[--skip-foreign-keys] [--source-profile=SOURCE_PROFILE]
|
||||
[--target=TARGET] [--target-profile=TARGET_PROFILE]
|
||||
[--write-limit=WRITE_LIMIT] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) Migrate data from a source database to Cloud Spanner given a
|
||||
schema.
|
||||
|
||||
EXAMPLES
|
||||
To copy data to Cloud Spanner given a session file:
|
||||
|
||||
$ gcloud alpha spanner migrate data --session=./session.json \
|
||||
--source=postgresql < ~/cart.pg_dump \
|
||||
--target-profile='instance=spanner-instance'
|
||||
|
||||
REQUIRED FLAGS
|
||||
--session=SESSION
|
||||
Specifies the file that you restore session state from.
|
||||
|
||||
--source=SOURCE
|
||||
Flag for specifying source database (e.g., PostgreSQL, MySQL,
|
||||
DynamoDB).
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--dry-run
|
||||
Flag for generating DDL and schema conversion report without creating a
|
||||
Cloud Spanner database.
|
||||
|
||||
--log-level=LOG_LEVEL
|
||||
To configure the log level for the execution (INFO, VERBOSE).
|
||||
|
||||
--prefix=PREFIX
|
||||
File prefix for generated files.
|
||||
|
||||
--skip-foreign-keys
|
||||
Skip creating foreign keys after data migration is complete.
|
||||
|
||||
--source-profile=SOURCE_PROFILE
|
||||
Flag for specifying connection profile for source database (e.g.,
|
||||
"file=<path>,format=dump").
|
||||
|
||||
--target=TARGET
|
||||
Specifies the target database, defaults to Spanner (accepted values:
|
||||
Spanner) (default "Spanner").
|
||||
|
||||
--target-profile=TARGET_PROFILE
|
||||
Flag for specifying connection profile for target database (e.g.,
|
||||
"dialect=postgresql)".
|
||||
|
||||
--write-limit=WRITE_LIMIT
|
||||
Number of parallel writers to Cloud Spanner during bulk data migrations
|
||||
(default 40).
|
||||
|
||||
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.
|
||||
|
||||
37
gcloud/alpha/spanner/migrate/help
Normal file
37
gcloud/alpha/spanner/migrate/help
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
NAME
|
||||
gcloud alpha spanner migrate - migrate external databases to Cloud Spanner
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha spanner migrate COMMAND [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) Migrate external databases to Cloud Spanner.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --help.
|
||||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
COMMANDS
|
||||
COMMAND is one of the following:
|
||||
|
||||
data
|
||||
(ALPHA) Migrate data from a source database to Cloud Spanner given a
|
||||
schema.
|
||||
|
||||
schema
|
||||
(ALPHA) Migrate schema from a source database to Cloud Spanner.
|
||||
|
||||
schema-and-data
|
||||
(ALPHA) Migrate data from a source database to Cloud Spanner given a
|
||||
schema.
|
||||
|
||||
web
|
||||
(ALPHA) Run the web UI assistant for schema migrations.
|
||||
|
||||
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.
|
||||
|
||||
61
gcloud/alpha/spanner/migrate/schema
Normal file
61
gcloud/alpha/spanner/migrate/schema
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
NAME
|
||||
gcloud alpha spanner migrate schema - migrate schema from a source database
|
||||
to Cloud Spanner
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha spanner migrate schema --source=SOURCE [--dry-run]
|
||||
[--log-level=LOG_LEVEL] [--prefix=PREFIX]
|
||||
[--source-profile=SOURCE_PROFILE] [--target=TARGET]
|
||||
[--target-profile=TARGET_PROFILE] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) Migrate schema from a source database to Cloud Spanner.
|
||||
|
||||
EXAMPLES
|
||||
To generate schema file from the source database:
|
||||
|
||||
$ gcloud alpha spanner migrate schema --source=postgresql < \
|
||||
~/cart.pg_dump
|
||||
|
||||
REQUIRED FLAGS
|
||||
--source=SOURCE
|
||||
Flag for specifying source database (e.g., PostgreSQL, MySQL,
|
||||
DynamoDB).
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--dry-run
|
||||
Flag for generating DDL and schema conversion report without creating a
|
||||
Cloud Spanner database.
|
||||
|
||||
--log-level=LOG_LEVEL
|
||||
To configure the log level for the execution (INFO, VERBOSE).
|
||||
|
||||
--prefix=PREFIX
|
||||
File prefix for generated files.
|
||||
|
||||
--source-profile=SOURCE_PROFILE
|
||||
Flag for specifying connection profile for source database (e.g.,
|
||||
"file=<path>,format=dump").
|
||||
|
||||
--target=TARGET
|
||||
Specifies the target database, defaults to Spanner (accepted values:
|
||||
Spanner) (default "Spanner").
|
||||
|
||||
--target-profile=TARGET_PROFILE
|
||||
Flag for specifying connection profile for target database (e.g.,
|
||||
"dialect=postgresql)".
|
||||
|
||||
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.
|
||||
|
||||
70
gcloud/alpha/spanner/migrate/schema-and-data
Normal file
70
gcloud/alpha/spanner/migrate/schema-and-data
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
NAME
|
||||
gcloud alpha spanner migrate schema-and-data - migrate data from a source
|
||||
database to Cloud Spanner given a schema
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha spanner migrate schema-and-data --source=SOURCE [--dry-run]
|
||||
[--log-level=LOG_LEVEL] [--prefix=PREFIX] [--skip-foreign-keys]
|
||||
[--source-profile=SOURCE_PROFILE] [--target=TARGET]
|
||||
[--target-profile=TARGET_PROFILE] [--write-limit=WRITE_LIMIT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) Migrate data from a source database to Cloud Spanner given a
|
||||
schema.
|
||||
|
||||
EXAMPLES
|
||||
To generate schema and copy data to Cloud Spanner from a source database:
|
||||
|
||||
$ gcloud alpha spanner migrate schema-and-data --source=postgresql \
|
||||
< ~/cart.pg_dump --target-profile='instance=spanner-instance'
|
||||
|
||||
REQUIRED FLAGS
|
||||
--source=SOURCE
|
||||
Flag for specifying source database (e.g., PostgreSQL, MySQL,
|
||||
DynamoDB).
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--dry-run
|
||||
Flag for generating DDL and schema conversion report without creating a
|
||||
Cloud Spanner database.
|
||||
|
||||
--log-level=LOG_LEVEL
|
||||
To configure the log level for the execution (INFO, VERBOSE).
|
||||
|
||||
--prefix=PREFIX
|
||||
File prefix for generated files.
|
||||
|
||||
--skip-foreign-keys
|
||||
Skip creating foreign keys after data migration is complete.
|
||||
|
||||
--source-profile=SOURCE_PROFILE
|
||||
Flag for specifying connection profile for source database (e.g.,
|
||||
"file=<path>,format=dump").
|
||||
|
||||
--target=TARGET
|
||||
Specifies the target database, defaults to Spanner (accepted values:
|
||||
Spanner) (default "Spanner").
|
||||
|
||||
--target-profile=TARGET_PROFILE
|
||||
Flag for specifying connection profile for target database (e.g.,
|
||||
"dialect=postgresql)".
|
||||
|
||||
--write-limit=WRITE_LIMIT
|
||||
Number of parallel writers to Cloud Spanner during bulk data migrations
|
||||
(default 40).
|
||||
|
||||
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.
|
||||
|
||||
37
gcloud/alpha/spanner/migrate/web
Normal file
37
gcloud/alpha/spanner/migrate/web
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
NAME
|
||||
gcloud alpha spanner migrate web - run the web UI assistant for schema
|
||||
migrations
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha spanner migrate web [--open] [--port=PORT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) Run the web UI assistant for schema migrations.
|
||||
|
||||
EXAMPLES
|
||||
To run the web UI assistant:
|
||||
|
||||
$ gcloud alpha spanner migrate web
|
||||
|
||||
FLAGS
|
||||
--open
|
||||
Open the Spanner migration tool web interface in the default browser.
|
||||
|
||||
--port=PORT
|
||||
The port in which Spanner migration tool will run, defaults to 8080
|
||||
|
||||
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.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue