创建存储库
PUT /_snapshot/my_backup
{
"type": "fs",
"settings": {
"location": "/es/elasticsearch-6.5.0/backup"
}
}
获取存储库信息
GET _snapshot/my_backup/_all
备份
PUT /_snapshot/my_backup/_snapshot_1
查看快照
GET /_snapshot/_snapshot_1
恢复索引
POST /_snapshot/my_backup/snapshot_1/_restore
{
"indices": "index_1"
}
查看索引状态
GET _cat/indices