gdcloud database migrations create

名称

gdcloud database migrations create - 为数据迁移创建迁移。

摘要

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 参考概览页面。