# Elasticsearch snapshot does not exist

**URL:** <https://discuss.elastic.co/t/elasticsearch-snapshot-does-not-exist/112130>\
**Category:** Elasticsearch\
**Created:** [December 17, 2017, 9:08pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-does-not-exist/112130 "2017-12-17T21:08:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![0NE](https://avatars.discourse-cdn.com/v4/letter/0/898d66/32.png) [@0NE](https://discuss.elastic.co/u/0NE)\
**Post date:** [December 17, 2017, 9:08pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-does-not-exist/112130/1 "2017-12-17T21:08:45Z")

</div>

I am trying to restore my elasticsearch on a new machine.

I copied the backup across, set up a new repo with the same name (called myrep). I have check if this works by doing:

```
> `GET http://127.0.0.1:9200/_snapshot`

```

which returned:

> {  
> "myrep": {  
> "type": "fs",  
> "settings": {  
> "compress": "true",  
> "location": "myrep"  
> }  
> }  
> }

When I try to do a restore doing:

> POST [http://127.0.0.1:9200/\_snapshot/myrep/snapshot\_1/\_restore](http://127.0.0.1:9200/_snapshot/myrep/snapshot_1/_restore)

I get an error:

> {  
> "error": {  
> "root\_cause": [  
> {  
> "type": "snapshot\_restore\_exception",  
> "reason": "[myrep:snapshot\_1]snapshot does not exist"  
> }  
> ],  
> "type": "snapshot\_restore\_exception",  
> "reason": "[myrep:snapshot\_1]snapshot does not exist"  
> },  
> "status": 500  
> }

More info:

When I do

> GET [http://127.0.0.1:9200/\_snapshot/myrep/\_all](http://127.0.0.1:9200/_snapshot/myrep/_all)

I only see indices that the machine already had, not the ones that I want restored...

Can anyone help?

* * *

**Edit: I believe this problem is occuring because im coming from 1.7 to 5.0+, right? Can someone confirm?**

---

<div class="post-metadata">

**Author:** ![0NE](https://avatars.discourse-cdn.com/v4/letter/0/898d66/32.png) [@0NE](https://discuss.elastic.co/u/0NE)\
**Post date:** [December 17, 2017, 10:20pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-does-not-exist/112130/2 "2017-12-17T22:20:37Z")

</div>

I have confirmed that the issue is because the instance I am trying to restore to a 6.0 cluster.

```
A snapshot of an index created in 5.x can be restored to 6.x.
A snapshot of an index created in 2.x can be restored to 5.x.
A snapshot of an index created in 1.x can be restored to 2.x. 

```

[https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html)

I did read this before, I just forgot that my new instance was 6.0

---

<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:** [January 14, 2018, 10:20pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-does-not-exist/112130/3 "2018-01-14T22:20:38Z")

</div>

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