将ElasticSearch快照物理文件保存在特定位置

时间:2015-10-28 10:24:37

标签: elasticsearch

要为ElasticSearch拍摄快照,我们需要先设置快照存储库:

$ curl -XPUT 'http://localhost:9200/_snapshot/repo_companyA' -d '{ 
    "type" : "fs", 
    "settings": {
        "location": "/data/backup/companyA", 
        "compress":true
    }
}'

如果我的ElasticSearch在G:硬盘上运行,那么物理快照将存储在运行ElasticSearch的G:drive文件夹中。

如果我希望将快照保存到F:驱动器中,该怎么办?

是否可以设置存储库以将快照副本保存到不同的特定物理位置?

0 个答案:

没有答案
相关问题