Docs 菜单
Docs 主页
/ /
Atlas
/ /

atlas liveMigrations create

在此页面上

  • 语法
  • 选项
  • 继承选项
  • 输出

创建新的推送实时迁移。

要使用脚本进行迁移,请使用 mongomirror 而不是 Atlas CLI。 要了解有关 mongomirror 的详情,请参阅 https://www.mongodb.com/zh-cn/docs/atlas/reference/mongomirror/。

命令语法
atlas liveMigrations create [options]
名称
类型
必需
说明
--clusterName
字符串
true
用于标识 Atlas 目标集群的人类可读标签。
--drop
false
标志,表示在开始从源集群迁移数据之前,此进程是否应从 --destinationClusterName 给定的目标 (Atlas) 集群中删除现有collection。
--force
false
指示在继续执行请求的操作之前是否跳过确认提示的标志。
-h,--help
false
创建帮助
--migrationHost
字符串
true
运行 MongoDB Agent 的主机列表,这些代理可以将 MongoDB 数据从源(Cloud Manager 或 Ops Manager)部署传输到目标 (Atlas) 部署。每个实时迁移进程都使用自己的专用迁移主机。
-o, --output
字符串
false
输出格式。 有效值为 json、json-path、go-template 或 go-template-file。 要查看完整输出,请使用 -o json 选项。
--projectId
字符串
false
标识要使用的项目的十六进制字符串。 此选项会覆盖配置文件或环境变量中的设置。
--sourceCACertificatePath
字符串
false
签名 TLS 证书用于对源 Cloud Manager 或 Ops Manager 集群进行身份验证的 CA 证书的路径。 如果未传递 --sourceSSL,则省略此值。
--sourceClusterName
字符串
true
人类可读标签,用于标识源 Cloud Manager 或 Ops Manager 集群。
--sourceManagedAuthentication
false

指示 MongoDB 自动化是否托管对源 Cloud Manager 或 Ops Manager 集群的身份验证的标志。如果将其设置为 true,则不要为 --sourceUsername 和 --sourcePassword 提供值。

与 --sourceUsername 互斥。

-p, --sourcePassword
字符串
false
用于在源 Cloud Manager 或 Ops Manager 集群中验证用户名的密码。如果传递了 --sourceManagedAuthentication,则省略此值。
--sourceProjectId
字符串
true
唯一的 24 位十六进制数字字符串,用于标识源项目。
--sourceSsl
false
指示数据源是否已启用 TLS 的标志。
-u, --sourceUsername
字符串
false

人类可读标签,用于标识连接到源 Cloud Manager 或 Ops Manager 集群的 SCRAM-SHA 用户。如果设置了 --sourceManagedAuthentication,则省略此值。

与 --sourceManagedAuthentication 互斥。

名称
类型
必需
说明
-P, --profile
字符串
false

如果命令成功,CLI 将返回类似于以下示例的输出。 括号中的值代表您的价值观。

ID LAGTIME READY FOR CUTOVER STATUS
<Id> <LagTimeSeconds> <ReadyForCutover> <Status>

后退

liveMigrations

来年

切换