在另一台机器上还原特定的AWS Elasticsearch数据库快照备份 [英] restore a specific AWS Elasticsearch database snapshot backup on a different machine
本文介绍了在另一台机器上还原特定的AWS Elasticsearch数据库快照备份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
curl -XGET'elasticsearch-domain-endpoint/_snapshot/repository/_all?pretty'
curl -XGET 'elasticsearch-domain-endpoint/_snapshot/repository/_all?pretty'
以下是索引快照的列表,如何使用AWS提供的kibana Elasticsearch 6.0.1将特定的快照还原到另一台计算机上
below are the list of indices snapshot, how do i restore a particular snapshot, on to another machine, using Elasticsearch 6.0.1, kibana provided by AWS
{
"snapshot": "2018-04-08t04-43-08.c5da6a35-8158-4799-a58d-0baf0a432275",
"uuid": "cJ2XzzDHSROh-SmiJ1mbHA",
"version_id": 6000199,
"version": "6.0.1",
"indices": [
"test-index2",
"l",
"test-index",
".kibana",
"test-index1",
"s"
],
"state": "SUCCESS",
"start_time": "2018-04-08T04:43:08.113Z",
"start_time_in_millis": 1523162588113,
"end_time": "2018-04-08T04:43:14.992Z",
"end_time_in_millis": 1523162594992,
"duration_in_millis": 6879,
"failures": [],
"shards": {
"total": 26,
"failed": 0,
"successful": 26
}
},
{
"snapshot": "2018-04-09t04-43-07.b2e215dc-5bea-446c-812a-4a2f0dddad9c",
"uuid": "2ib6BIdURSmoL1OlUpzIPg",
"version_id": 6000199,
"version": "6.0.1",
"indices": [
"test-index2",
"l",
"test-index",
".kibana",
"test-index1",
"s"
],
"state": "SUCCESS",
"start_time": "2018-04-09T04:43:07.639Z",
"start_time_in_millis": 1523248987639,
"end_time": "2018-04-09T04:43:14.590Z",
"end_time_in_millis": 1523248994590,
"duration_in_millis": 6951,
"failures": [],
"shards": {
"total": 26,
"failed": 0,
"successful": 26
}
}
推荐答案
您首先需要在其他ES群集上创建相同的S3存储库(与在源群集上最初创建存储库时完全相同的命令)>
You first need to create the same S3 repo on your other ES cluster (the exact same command as when you initially created the repository on your source cluster)
PUT _snapshot/repository
{
"type": "s3",
"settings": {
"bucket": "your_bucket"
}
}
然后您可以使用以下方法非常简单地还原任何快照:
And then you can restore any snapshot very simply with:
POST /_snapshot/repository/2018-04-08t04-43-08.c5da6a35-8158-4799-a58d-0baf0a432275/_restore
这篇关于在另一台机器上还原特定的AWS Elasticsearch数据库快照备份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文