Stay organized with collections Save and categorize content based on your preferences.
gcloud database-migration migration-jobs create
(MIGRATION_JOB
: --region
=REGION
) --destination
=DESTINATION
--source
=SOURCE
--type
=TYPE
[--no-async
] [--commit-id
=COMMIT_ID
] [--conversion-workspace
=CONVERSION_WORKSPACE
] [--display-name
=DISPLAY_NAME
] [--dump-parallel-level
=DUMP_PARALLEL_LEVEL
] [--dump-path
=DUMP_PATH
] [--dump-type
=DUMP_TYPE
] [--filter
=FILTER
] [--labels
=[KEY
=VALUE
,…]] [--all-databases
| --databases-filter
=databaseName
,[…]] [--cmek-key
=CMEK_KEY
: --cmek-keyring
=CMEK_KEYRING
--cmek-project
=CMEK_PROJECT
] [--max-concurrent-cdc-connections
=MAX_CONCURRENT_CDC_CONNECTIONS
--max-concurrent-full-dump-connections
=MAX_CONCURRENT_FULL_DUMP_CONNECTIONS
--skip-full-dump
--oracle-cdc-start-position
=ORACLE_CDC_START_POSITION
| --sqlserver-cdc-start-position
=SQLSERVER_CDC_START_POSITION
--max-concurrent-destination-connections
=MAX_CONCURRENT_DESTINATION_CONNECTIONS
--transaction-timeout
=TRANSACTION_TIMEOUT
] [--peer-vpc
=PEER_VPC
| --static-ip
| [--vm-ip
=VM_IP
--vm-port
=VM_PORT
--vpc
=VPC
: --vm
=VM
]] [--sqlserver-databases
=databaseName
,[…] : --sqlserver-diff-backup
--sqlserver-encrypted-databases
=SQLSERVER_ENCRYPTED_DATABASES
--sqlserver-promote-when-ready
] [GCLOUD_WIDE_FLAG …
]
gcloud database-migration migration-jobs create my-migration-job --region=us-central1 --type=CONTINUOUS --source=cp1 --destination=cp2
To create a continuous migration job with VPC peering connectivity:
gcloud database-migration migration-jobs create my-migration-job --region=us-central1 --type=CONTINUOUS --source=cp1 --destination=cp2 --peer-vpc=projects/my-project/global/networks/my-network
To create a one-time migration job with reverse-SSH tunnel connectivity:
gcloud database-migration migration-jobs create my-migration-job --region=us-central1 --type=ONE_TIME --source=cp1 --destination=cp2 --vm=vm1 --vm-ip=1.1.1.1 --vm-port=1111 --vpc=projects/my-project/global/networks/my-network
To create a heterogeneous continuous migration job:
gcloud database-migration migration-jobs create my-migration-job --region=us-central1 --type=CONTINUOUS --source=cp1 --destination=cp2 --conversion-workspace=cw
To create a continuous SQL Server to SQL Server homogeneous migration job with differential backup enabled:
gcloud database-migration migration-jobs create my-migration-job --region=us-central1 --type=CONTINUOUS --source=cp1 --destination=cp2 --sqlserver-diff-backup --sqlserver-databases=db1,db2,db3
To create a continuous SQL Server to SQL Server homogeneous migration job with encrypted databases:
gcloud database-migration migration-jobs create my-migration-job --region=us-central1 --type=CONTINUOUS --source=cp1 --destination=cp2 --sqlserver-databases=db1,db2,db3 --sqlserver-encrypted-databases=PATH/TO/ENCRYPTION/SETTINGS
To set the project
attribute:
migration_job
on the command line with a fully specified name;--project
on the command line;core/project
.This must be specified.
MIGRATION_JOB
To set the migration_job
attribute:
migration_job
on the command line.This positional argument must be specified if any of the other arguments in this group are specified.
--region
=REGION
To set the region
attribute:
migration_job
on the command line with a fully specified name;--region
on the command line.To set the project
attribute:
--destination
on the command line with a fully specified name;--project
on the command line;core/project
.To set the region
attribute:
--destination
on the command line with a fully specified name;--region
on the command line.This must be specified.
--destination
=DESTINATION
To set the connection_profile
attribute:
--destination
on the command line.To set the project
attribute:
--source
on the command line with a fully specified name;--project
on the command line;core/project
.To set the region
attribute:
--source
on the command line with a fully specified name;--region
on the command line.This must be specified.
--source
=SOURCE
To set the connection_profile
attribute:
--source
on the command line.--type
=TYPE
TYPE
must be one of: ONE_TIME
, CONTINUOUS
.
--no-async
--commit-id
=COMMIT_ID
To set the project
attribute:
--conversion-workspace
on the command line with a fully specified name;--project
on the command line;core/project
.To set the region
attribute:
--conversion-workspace
on the command line with a fully specified name;--region
on the command line.--conversion-workspace
=CONVERSION_WORKSPACE
To set the conversion_workspace
attribute:
--conversion-workspace
on the command line.--display-name
=DISPLAY_NAME
--dump-parallel-level
=DUMP_PARALLEL_LEVEL
DUMP_PARALLEL_LEVEL
must be one of: MIN
, OPTIMAL
, MAX
.
--dump-path
=DUMP_PATH
gs://[BUCKET_NAME]/[OBJECT_NAME]
.
--dump-type
=DUMP_TYPE
DUMP_TYPE
must be one of: LOGICAL
, PHYSICAL
.
--filter
=FILTER
*
AND type=TABLE"
--labels
=[KEY
=VALUE
,…]
Keys must start with a lowercase character and contain only hyphens (-
), underscores (_
), lowercase characters, and numbers. Values must contain only hyphens (-
), underscores (_
), lowercase characters, and numbers.
At most one of these can be specified:
--all-databases
--databases-filter
=databaseName
,[…]
To set the region
attribute:
--cmek-key
on the command line with a fully specified name;--region
on the command line.--cmek-key
=CMEK_KEY
To set the cmek-key
attribute:
--cmek-key
on the command line.This flag argument must be specified if any of the other arguments in this group are specified.
--cmek-keyring
=CMEK_KEYRING
To set the cmek-keyring
attribute:
--cmek-key
on the command line with a fully specified name;--cmek-keyring
on the command line.--cmek-project
=CMEK_PROJECT
To set the cmek-project
attribute:
--cmek-key
on the command line with a fully specified name;--cmek-project
on the command line.--max-concurrent-cdc-connections
=MAX_CONCURRENT_CDC_CONNECTIONS
--max-concurrent-full-dump-connections
=MAX_CONCURRENT_FULL_DUMP_CONNECTIONS
--skip-full-dump
At most one of these can be specified:
--oracle-cdc-start-position
=ORACLE_CDC_START_POSITION
--sqlserver-cdc-start-position
=SQLSERVER_CDC_START_POSITION
--max-concurrent-destination-connections
=MAX_CONCURRENT_DESTINATION_CONNECTIONS
--transaction-timeout
=TRANSACTION_TIMEOUT
At most one of these can be specified:
--peer-vpc
=PEER_VPC
--static-ip
--vm-ip
=VM_IP
This flag argument must be specified if any of the other arguments in this group are specified.
--vm-port
=VM_PORT
This flag argument must be specified if any of the other arguments in this group are specified.
--vpc
=VPC
This flag argument must be specified if any of the other arguments in this group are specified.
--vm
=VM
--sqlserver-databases
=databaseName
,[…]
This flag argument must be specified if any of the other arguments in this group are specified.
--sqlserver-diff-backup
--sqlserver-encrypted-databases
=SQLSERVER_ENCRYPTED_DATABASES
gs://bucketName/fileName
. The instance must have write permissions to the bucket and read access to the file. An example of a JSON request: [{ "database": "db1", "encryptionOptions": { "certPath": "Path to certificate 1", "pvkPath": "Path to certificate private key 1", "pvkPassword": "Private key password 1" } }, { "database": "db2", "encryptionOptions": { "certPath": "Path to certificate 2", "pvkPath": "Path to certificate private key 2", "pvkPassword": "Private key password 2" } }]
This flag accepts "-" for stdin. This flag is used only for SQL Server to Cloud SQL migrations.
--sqlserver-promote-when-ready
--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.
gcloud alpha database-migration migration-jobs create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-22 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-22 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4