Hello,
I tried to restore data from elasticsearch 2.4.3 cluster to new 5.5.1, and faced with strange issue:
New ES 5.5.1 seen the snapshots itself:
$ curl -XGET 'localhost:9200/_snapshot/backup/sl-backup-2017.08.10?pretty'
{
"snapshots" : [
{
"snapshot" : "sl-backup-2017.08.10",
"uuid" : "sl-backup-2017.08.10",
"version_id" : 2040399,
"version" : "2.4.3",
"indices" : [
"sl",
"loadingtimes",
"slagents"
],
"state" : "SUCCESS",
"start_time" : "2017-08-10T12:00:45.640Z",
"start_time_in_millis" : 1502366445640,
"end_time" : "2017-08-10T12:00:49.300Z",
"end_time_in_millis" : 1502366449300,
"duration_in_millis" : 3660,
"failures" : [ ],
"shards" : {
"total" : 3,
"failed" : 0,
"successful" : 3
}
}
]
}
But, when i am trying to restore them i get strange error:
$ curl -XPOST 'localhost:9200/_snapshot/sl-backup-2017.08.10/_restore?pretty'
{
"error" : {
"root_cause" : [
{
"type" : "invalid_snapshot_name_exception",
"reason" : "[sl-backup-2017.08.10:_restore]Invalid snapshot name [_restore], must not start with '_'"
}
],
"type" : "invalid_snapshot_name_exception",
"reason" : "[sl-backup-2017.08.10:_restore]Invalid snapshot name [_restore], must not start with '_'"
},
"status" : 400
}
I took this curl from documentation (https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_restore), but it not works for me.
What could be wrong here?
Thanks in advance!