简体   繁体   English

是否可以从Elasticsearch的集群中获取单个索引快照

[英]Is it possible to take individual index snapshot from a cluster in Elasticsearch

Am working on Elasticsearch snapshot and restore, i know while restoring we have option to restore entire cluster or else only the required index from the snapshot. 我正在研究Elasticsearch快照和还原,我知道在还原的同时我们可以选择还原整个集群,也可以只还原快照中所需的索引。 But do we have the feature available which enable us to take only the snapshot of index needed from a cluster i couldn't see a support documents for this. 但是,我们是否具有可用的功能,该功能仅使我们能够从集群中获取所需的索引快照,而我看不到对此的支持文档。 hence ask here, please let me know if there is option. 因此在这里问,请让我知道是否有选择。

regards. 问候。

Yes, you can take a snapshot of a specific index. 是的,您可以拍摄特定索引的快照。 From the documentation 文档中

By default a snapshot of all open and started indices in the cluster is created. 默认情况下,将创建集群中所有打开和启动的索引的快照。 This behavior can be changed by specifying the list of indices in the body of the snapshot request. 可以通过在快照请求的正文中指定索引列表来更改此行为。

PUT /_snapshot/my_backup/snapshot_1 { "indices": "index_1,index_2", "ignore_unavailable": true, "include_global_state": false }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM