创建快照仓库
curl -X PUT "localhost:9200/_snapshot/curator-dtlog04" -H 'Content-Type: application/json' -d'
{
"type": "fs",
"settings": {
"location": "dtlog04_backup"
}
}
'
查看快照仓库列表
https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html
# curl -X GET "localhost:9200/_cat/repositories?v"
id type
curator-dtlog07 fs
curator-dtlog08 fs
curator-dtlog09 fs
curator-dtlog10 fs
curator-dtlog11 fs
查看快照状态,命令返回参与快照的每个分片的当前状态完整分解
# curl -X GET http://localhost:9200/_snapshot/curator-dtlog04/curator-20191130111011/_status?pretty