# We can not restore use the snapshot backup files

**URL:** <https://discuss.elastic.co/t/we-can-not-restore-use-the-snapshot-backup-files/130582>\
**Category:** Elasticsearch\
**Created:** [May 4, 2018, 8:15am UTC](https://discuss.elastic.co/t/we-can-not-restore-use-the-snapshot-backup-files/130582 "2018-05-04T08:15:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![showmeall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/showmeall/32/29507_2.png) [@showmeall](https://discuss.elastic.co/u/showmeall)\
**Post date:** [May 4, 2018, 8:15am UTC](https://discuss.elastic.co/t/we-can-not-restore-use-the-snapshot-backup-files/130582/1 "2018-05-04T08:15:26Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![showmeall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/showmeall/32/29507_2.png) [@showmeall](https://discuss.elastic.co/u/showmeall)\
**Post date:** [May 4, 2018, 11:54am UTC](https://discuss.elastic.co/t/we-can-not-restore-use-the-snapshot-backup-files/130582/2 "2018-05-04T11:54:55Z")

</div>

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？

---

<div class="post-metadata">

**Author:** ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)\
**Post date:** [May 5, 2018, 4:29am UTC](https://discuss.elastic.co/t/we-can-not-restore-use-the-snapshot-backup-files/130582/3 "2018-05-05T04:29:37Z")

</div>

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](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/modules-snapshots.html#_restore)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 2, 2018, 4:29am UTC](https://discuss.elastic.co/t/we-can-not-restore-use-the-snapshot-backup-files/130582/4 "2018-06-02T04:29:38Z")

</div>

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