- A+
所属分类:其他杂项
Windwos上操作:
###第一步,创建储存库 PUT _snapshot/my_backup { "type": "fs", "settings": { "location": "/backup" } } ###第二步,创建索引快照 PUT /_snapshot/my_backup/snapshot_2?wait_for_completion=true { "indices": "xx0,xx1,xx2", "ignore_unavailable": true, "include_global_state": false, "metadata": { "taken_by": "kimchy", "taken_because": "backup before upgrading" } }
CentOS7上操作:
###第一步,创建储存库 PUT _snapshot/my_backup { "type": "fs", "settings": { "location": "/data/backup" } } ###第二步,还原索引快照
POST /_snapshot/my_backup/snapshot_1/_restore
{
"indices": "xxx0,xx1,xx2",
"ignore_unavailable": true,
"include_global_state": false, }