创建快照仓库

    1. curl -X PUT "localhost:9200/_snapshot/curator-dtlog04" -H 'Content-Type: application/json' -d'
    2. {
    3. "type": "fs",
    4. "settings": {
    5. "location": "dtlog04_backup"
    6. }
    7. }
    8. '

    查看快照仓库列表
    https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html

    1. # curl -X GET "localhost:9200/_cat/repositories?v"
    2. id type
    3. curator-dtlog07 fs
    4. curator-dtlog08 fs
    5. curator-dtlog09 fs
    6. curator-dtlog10 fs
    7. curator-dtlog11 fs

    查看快照状态,命令返回参与快照的每个分片的当前状态完整分解

    1. # curl -X GET http://localhost:9200/_snapshot/curator-dtlog04/curator-20191130111011/_status?pretty