gcloud alpha alloydb clusters migrate-cloud-sql
CLUSTER
--cloud-sql-backup-id
=CLOUD_SQL_BACKUP_ID
--cloud-sql-instance-id
=CLOUD_SQL_INSTANCE_ID
--cloud-sql-project-id
=CLOUD_SQL_PROJECT_ID
--password
=PASSWORD
--region
=REGION
[--allocated-ip-range-name
=ALLOCATED_IP_RANGE_NAME
] [--async
] [--database-version
=DATABASE_VERSION
] [--enable-private-service-connect
] [--network
=NETWORK
] [--subscription-type
=SUBSCRIPTION_TYPE
] [--tags
=[KEY
=VALUE
,…]] [--continuous-backup-recovery-window-days
=RECOVERY_PERIOD
--enable-continuous-backup
[--continuous-backup-encryption-key
=CONTINUOUS_BACKUP_ENCRYPTION_KEY
: --continuous-backup-encryption-key-keyring
=CONTINUOUS_BACKUP_ENCRYPTION_KEY_KEYRING
--continuous-backup-encryption-key-location
=CONTINUOUS_BACKUP_ENCRYPTION_KEY_LOCATION
--continuous-backup-encryption-key-project
=CONTINUOUS_BACKUP_ENCRYPTION_KEY_PROJECT
]] [--deny-maintenance-period-end-date
=DENY_MAINTENANCE_PERIOD_END_DATE
--deny-maintenance-period-start-date
=DENY_MAINTENANCE_PERIOD_START_DATE
--deny-maintenance-period-time
=DENY_MAINTENANCE_PERIOD_TIME
] [--disable-automated-backup
| [--automated-backup-days-of-week
=[DAYS_OF_WEEK
,…] --automated-backup-start-times
=[START_TIMES
,…] : --automated-backup-window
=TIMEOUT_PERIOD
[--automated-backup-encryption-key
=AUTOMATED_BACKUP_ENCRYPTION_KEY
: --automated-backup-encryption-key-keyring
=AUTOMATED_BACKUP_ENCRYPTION_KEY_KEYRING
--automated-backup-encryption-key-location
=AUTOMATED_BACKUP_ENCRYPTION_KEY_LOCATION
--automated-backup-encryption-key-project
=AUTOMATED_BACKUP_ENCRYPTION_KEY_PROJECT
] --automated-backup-retention-count
=RETENTION_COUNT
| --automated-backup-retention-period
=RETENTION_PERIOD
]] [--kms-key
=KMS_KEY
: --kms-keyring
=KMS_KEYRING
--kms-location
=KMS_LOCATION
--kms-project
=KMS_PROJECT
] [--maintenance-window-day
=MAINTENANCE_WINDOW_DAY
--maintenance-window-hour
=MAINTENANCE_WINDOW_HOUR
] [GCLOUD_WIDE_FLAG …
]
(ALPHA)
This command migrates a Cloud SQL instance to an AlloyDB cluster using an existing Cloud SQL backup.
gcloud alpha alloydb clusters migrate-cloud-sql my-alloydb-cluster --region=us-central1 --cloud-sql-project-id=my-cloud-sql-project-id --cloud-sql-instance-id=my-cloud-sql-cluster-id --cloud-sql-backup-id=my-cloud-sql-backup-id
CLUSTER
This must be specified.
--cloud-sql-backup-id
=CLOUD_SQL_BACKUP_ID
--cloud-sql-instance-id
=CLOUD_SQL_INSTANCE_ID
--cloud-sql-project-id
=CLOUD_SQL_PROJECT_ID
--password
=PASSWORD
--region
=REGION
asia-east1
, us-east1
). See the full list of regions at https://cloud.google.com/sql/docs/instance-locations.
--allocated-ip-range-name
=ALLOCATED_IP_RANGE_NAME
[a-z]([-a-z0-9]*[a-z0-9])?
.
--async
--database-version
=DATABASE_VERSION
DATABASE_VERSION
must be one of: POSTGRES_14
, POSTGRES_15
, POSTGRES_16
, POSTGRES_17
.
--enable-private-service-connect
--network
=NETWORK
testproject
, and shared network, testsharednetwork
, this would be of the form:--network=projects/testproject/global/networks/testsharednetwork
--subscription-type
=SUBSCRIPTION_TYPE
SUBSCRIPTION_TYPE
must be one of: STANDARD
, TRIAL
.
--tags
=[KEY
=VALUE
,…]
<tag-key-namespaced-name>=<tag-value-short-name>
.
Example: 123/environment=production,123/costCenter=marketing
--continuous-backup-recovery-window-days
=RECOVERY_PERIOD
--enable-continuous-backup
--continuous-backup-encryption-key
=CONTINUOUS_BACKUP_ENCRYPTION_KEY
To set the kms-key
attribute:
--continuous-backup-encryption-key
on the command line.This flag argument must be specified if any of the other arguments in this group are specified.
--continuous-backup-encryption-key-keyring
=CONTINUOUS_BACKUP_ENCRYPTION_KEY_KEYRING
To set the kms-keyring
attribute:
--continuous-backup-encryption-key
on the command line with a fully specified name;--continuous-backup-encryption-key-keyring
on the command line.--continuous-backup-encryption-key-location
=CONTINUOUS_BACKUP_ENCRYPTION_KEY_LOCATION
To set the kms-location
attribute:
--continuous-backup-encryption-key
on the command line with a fully specified name;--continuous-backup-encryption-key-location
on the command line.--continuous-backup-encryption-key-project
=CONTINUOUS_BACKUP_ENCRYPTION_KEY_PROJECT
To set the kms-project
attribute:
--continuous-backup-encryption-key
on the command line with a fully specified name;--continuous-backup-encryption-key-project
on the command line;core/project
.--deny-maintenance-period-end-date
=DENY_MAINTENANCE_PERIOD_END_DATE
This flag argument must be specified if any of the other arguments in this group are specified.
--deny-maintenance-period-start-date
=DENY_MAINTENANCE_PERIOD_START_DATE
This flag argument must be specified if any of the other arguments in this group are specified.
--deny-maintenance-period-time
=DENY_MAINTENANCE_PERIOD_TIME
This flag argument must be specified if any of the other arguments in this group are specified.
At most one of these can be specified:
--disable-automated-backup
--automated-backup-days-of-week
=[DAYS_OF_WEEK
,…]
DAYS_OF_WEEK
must be one of: MONDAY
, TUESDAY
, WEDNESDAY
, THURSDAY
, FRIDAY
, SATURDAY
, SUNDAY
.
This flag argument must be specified if any of the other arguments in this group are specified.
--automated-backup-start-times
=[START_TIMES
,…]
--automated-backup-start-times=01:00,13:00
)
This flag argument must be specified if any of the other arguments in this group are specified.
--automated-backup-window
=TIMEOUT_PERIOD
--automated-backup-encryption-key
=AUTOMATED_BACKUP_ENCRYPTION_KEY
To set the kms-key
attribute:
--automated-backup-encryption-key
on the command line.This flag argument must be specified if any of the other arguments in this group are specified.
--automated-backup-encryption-key-keyring
=AUTOMATED_BACKUP_ENCRYPTION_KEY_KEYRING
To set the kms-keyring
attribute:
--automated-backup-encryption-key
on the command line with a fully specified name;--automated-backup-encryption-key-keyring
on the command line.--automated-backup-encryption-key-location
=AUTOMATED_BACKUP_ENCRYPTION_KEY_LOCATION
To set the kms-location
attribute:
--automated-backup-encryption-key
on the command line with a fully specified name;--automated-backup-encryption-key-location
on the command line.--automated-backup-encryption-key-project
=AUTOMATED_BACKUP_ENCRYPTION_KEY_PROJECT
To set the kms-project
attribute:
--automated-backup-encryption-key
on the command line with a fully specified name;--automated-backup-encryption-key-project
on the command line;core/project
.At most one of these can be specified:
--automated-backup-retention-count
=RETENTION_COUNT
--automated-backup-retention-period
=RETENTION_PERIOD
$ gcloud topic datetimes
for information on duration formats.
--kms-key
=KMS_KEY
To set the kms-key
attribute:
--kms-key
on the command line.This flag argument must be specified if any of the other arguments in this group are specified.
--kms-keyring
=KMS_KEYRING
To set the kms-keyring
attribute:
--kms-key
on the command line with a fully specified name;--kms-keyring
on the command line.--kms-location
=KMS_LOCATION
To set the kms-location
attribute:
--kms-key
on the command line with a fully specified name;--kms-location
on the command line.--kms-project
=KMS_PROJECT
To set the kms-project
attribute:
--kms-key
on the command line with a fully specified name;--kms-project
on the command line;core/project
.--maintenance-window-day
=MAINTENANCE_WINDOW_DAY
MAINTENANCE_WINDOW_DAY
must be one of: MONDAY
, TUESDAY
, WEDNESDAY
, THURSDAY
, FRIDAY
, SATURDAY
, SUNDAY
.
This flag argument must be specified if any of the other arguments in this group are specified.
--maintenance-window-hour
=MAINTENANCE_WINDOW_HOUR
This flag argument must be specified if any of the other arguments in this group are specified.
--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 alloydb clusters migrate-cloud-sql
gcloud beta alloydb clusters migrate-cloud-sql
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