Docs 菜单

mongocli Atlas clusters onlineArchives create

Create an online archive for a cluster.

mongocli atlas clusters onlineArchives create [options]
名称
类型
必需
说明
--archiveAfter
float
true
Number of days that specifies the age limit for the data in the live Atlas cluster.
--clusterName
字符串
true
集群名称。
--collection
字符串
true
集合名称。
--dateField
字符串
true
文档中已建立索引的日期字段的名称。
--dateFormat
字符串
false
Date format for the date field. Valid values: ISODATE|EPOCH_SECONDS|EPOCH_MILLIS|EPOCH_NANOSECONDS. (default "ISODATE")
--db
字符串
true
数据库名称。
-h,--help
false
创建帮助
-o, --output
字符串
false
Output format. Valid values: json|json-path|go-template|go-template-file
--partition
字符串
false
Fields to use to partition data. You can specify up to two frequently queried fields to use for partitioning data.
--projectId
字符串
false
要使用的项目ID 。 覆盖配置文件或环境变量设置。
名称
类型
必需
说明
-P, --profile
字符串
false
配置文件中要使用的配置文件。

由MongoDB CLI在 29 -Jun- 2021 自动生成