# Snapshot specific index and specific pattern

**URL:** https://discuss.elastic.co/t/snapshot-specific-index-and-specific-pattern/173894
**Category:** Elasticsearch
**Created:** [March 26, 2019, 9:28am UTC](https://discuss.elastic.co/t/snapshot-specific-index-and-specific-pattern/173894 "2019-03-26T09:28:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![michbsd](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@michbsd](https://discuss.elastic.co/u/michbsd)
#### Post date: [March 26, 2019, 9:28am UTC](https://discuss.elastic.co/t/snapshot-specific-index-and-specific-pattern/173894/1 "2019-03-26T09:28:55Z")

</div>

Hi,

I have a logstash index - and I would like to snapshot only this index (which I can already do) - however I would like to only snapshot data in the image which has e.g. source:/var/log/messages

My logstash indices contains a lot of different data - and I would like to snapshot only some specific elements from the index - that I can then restore on another ES cluster and work with.

Thanks

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [March 26, 2019, 10:47am UTC](https://discuss.elastic.co/t/snapshot-specific-index-and-specific-pattern/173894/2 "2019-03-26T10:47:33Z")

</div>

This is not possible, because a snapshot simply takes a copy of the on-disk data and stores it in a repository. Snapshots are for backup, i.e., so you can restore a copy of an index later. It doesn't really make sense to snapshot the results of a search.

You could use [reindex](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html) to create an index containing only the data you want and then take a snapshot of just that index.

---

<div class="post-metadata">

### Author: ![michbsd](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@michbsd](https://discuss.elastic.co/u/michbsd)
#### Post date: [March 26, 2019, 11:53am UTC](https://discuss.elastic.co/t/snapshot-specific-index-and-specific-pattern/173894/3 "2019-03-26T11:53:26Z")

</div>

Thank you - will try

---

<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: [April 23, 2019, 11:53am UTC](https://discuss.elastic.co/t/snapshot-specific-index-and-specific-pattern/173894/4 "2019-04-23T11:53:30Z")

</div>

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