采用快照方式

1.源集群采用NFS,注意权限

2.共享目录完成后,在所有ES服务器上挂载为同一目录

3.创建快照仓库

put _snapshot/my_backup
{
“type”: “fs”,
“settings”: {
“compress”: true,
“location”: “/data/esback”
}
}

4.全部索引备份

get  _snapshot/my_backup/snapshot_1

目标ES集群

0.创建快照仓库

put _snapshot/my_backup
{
“type”: “fs”,
“settings”: {
“compress”: true,
“location”: “/data/esback”
}
}

1.查看快照状态

GET _snapshot/my_backup/snapshot_1/_status

注意要完全一样

2.恢复快照

post _snapshot/my_backup/snapshot_1/_restore

3.如果是全部恢复

要删除.kibana索引

不能与恢复的索引一样

DELETE .kibana