gdcloud database migrations create

名稱

gdcloud database migrations create - Create a migration for data migration.

概要

gdcloud database migrations create MIGRATION_NAME [flags]

範例

To create a migration to migration data from SOURCE_CONNECTION_PROFILE to DESTINATION_DBCLUSTER, run:

  gdcloud database migrations create migration-sample \
  --source=SOURCE_CONNECTION_PROFILE --destination=DESTINATION_DBCLUSTER

必要標記

      --destination string   Destination DBCluster that will be created as migration target.
      --source string        Source connection-profile that the migration service uses to connect to the source database.

選用旗標

      --database-engine string   Destination DBCluster type. (default "POSTGRESQL")
      --zone string              Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.

GDCLOUD 廣泛旗標

所有指令都可使用這些旗標:--configuration--format--help--project--quiet

詳情請參閱 gdcloud CLI 參考資料總覽頁面。