# Path to index on disk in ES 5.3

**URL:** <https://discuss.elastic.co/t/path-to-index-on-disk-in-es-5-3/83715>\
**Category:** Elasticsearch\
**Created:** [April 26, 2017, 2:21pm UTC](https://discuss.elastic.co/t/path-to-index-on-disk-in-es-5-3/83715 "2017-04-26T14:21:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![philv](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@philv](https://discuss.elastic.co/u/philv)\
**Post date:** [April 26, 2017, 2:21pm UTC](https://discuss.elastic.co/t/path-to-index-on-disk-in-es-5-3/83715/1 "2017-04-26T14:21:23Z")

</div>

In ES v2.\* I used to be able to see the index files under a directory that was equivalent to the index name. In v 5.\* this appears not to be the case. eg.  
ES 2.\* nodes/0/indices/myindex  
ES 5.\* nodes/0/indices/Se6GMUykQKiG7EDMt3e-AQ

Is there a way to map the index name to the ordinal value ?  
I need this because I need to be able to copy an index made on one machine to a separate machine on a separate network etc.

Many thanks,  
Phil

---

<div class="post-metadata">

**Author:** ![pablosan](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@pablosan](https://discuss.elastic.co/u/pablosan)\
**Post date:** [April 26, 2017, 2:34pm UTC](https://discuss.elastic.co/t/path-to-index-on-disk-in-es-5-3/83715/2 "2017-04-26T14:34:13Z")

</div>

Hi Phil,

[https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html)  
what about making an snapshot? would that work?

---

<div class="post-metadata">

**Author:** ![philv](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@philv](https://discuss.elastic.co/u/philv)\
**Post date:** [April 26, 2017, 3:34pm UTC](https://discuss.elastic.co/t/path-to-index-on-disk-in-es-5-3/83715/3 "2017-04-26T15:34:01Z")

</div>

Thanks for the reply.

I'm not sure whether it would. Let me elaborate- I generate an index during our build process. I used to then archive this and distribute it to the various ES node data paths. I'd delete the older version of the index first by simply removing the directory, then I'd copy in the new index directory. It worked well. However, now , because I have multiple indices, I have no way of telling which is the index directory I should delete up front. Would snapshotting solve this issue ?

---

<div class="post-metadata">

**Author:** ![pablosan](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@pablosan](https://discuss.elastic.co/u/pablosan)\
**Post date:** [April 26, 2017, 3:41pm UTC](https://discuss.elastic.co/t/path-to-index-on-disk-in-es-5-3/83715/4 "2017-04-26T15:41:45Z")

</div>

I think that manual work is pretty error prone, I would definitely give it a try to snapshot, and then if you want to delete an index you can use the API.  
You can generate a snapshot of an index you need, and then restore it in another instance.  
Hopefully I understood your case, but I might be wrong 🙂

---

<div class="post-metadata">

**Author:** ![philv](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@philv](https://discuss.elastic.co/u/philv)\
**Post date:** [April 26, 2017, 4:59pm UTC](https://discuss.elastic.co/t/path-to-index-on-disk-in-es-5-3/83715/5 "2017-04-26T16:59:11Z")

</div>

I'd have to experiment. It's a nice idea, thanks.  
In the meantime, I also found the mapping I want from index name to ordinal:  
[http://localhost:9200/\_cat/indices/](http://localhost:9200/_cat/indices/)

I do prefer the idea of the snapshot though. I'm going to go away and play!

---

<div class="post-metadata">

**Author:** ![philv](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@philv](https://discuss.elastic.co/u/philv)\
**Post date:** [May 23, 2017, 10:33am UTC](https://discuss.elastic.co/t/path-to-index-on-disk-in-es-5-3/83715/6 "2017-05-23T10:33:52Z")

</div>

it worked great thanks !

---

<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 20, 2017, 10:34am UTC](https://discuss.elastic.co/t/path-to-index-on-disk-in-es-5-3/83715/7 "2017-06-20T10:34:11Z")

</div>

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