We can not restore use the snapshot backup files

hi,all.
we have backup data by snapshot, want restore to a new es server. we have cp all snapshot file to new server already , can create backup repository ,and check it ok,
{"backup":{"type":"fs","settings":{"location":"/esdata/mntsnapshot","max_restore_bytes_per_sec":"100mb","compress":"true","max_snapshot_bytes_per_sec":"100mb"}}}

then we check the snapshot status, it is ok also
{
"snapshots" : [ {
"snapshot" : "snapshot20180425",
"version_id" : 2040099,
"version" : "2.4.0",
"indices" : [ "fofapro" ],
"state" : "SUCCESS",
"start_time" : "2018-04-25T04:00:02.611Z",
"start_time_in_millis" : 1524628802611,
"end_time" : "2018-04-25T04:27:49.811Z",
"end_time_in_millis" : 1524630469811,
"duration_in_millis" : 1667200,
"failures" : [ ],
"shards" : {
"total" : 5,
"failed" : 0,
"successful" : 5
}
} ]
}

i tyr to restore by api : curl -XPOST http://localhost:9200/_snapshot/backup/snapshot20180425/_restore

but no response, and no error info , no data restore . any one knows what is the problem? please help .thanks.

both Elasticsearch version is 2.4.0

i found the problem , we just have one node, when we restore the cluster can not distribute shard to the node , it is strange , i try to create the index by Manual ,it is ok, we can see the node have shard. the we close the index with api , and restore again , it is ok, why can not restore direct?

If I understand your scenario correctly, the important issue is that an existing index can be only restored if it’s closed and has the same number of shards as the index in the snapshot. [1]

[1] https://www.elastic.co/guide/en/elasticsearch/reference/2.4/modules-snapshots.html#_restore

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.