# Can I snapshot only a couple types within my index?

**URL:** <https://discuss.elastic.co/t/can-i-snapshot-only-a-couple-types-within-my-index/63426>\
**Category:** Elasticsearch\
**Created:** [October 19, 2016, 5:41pm UTC](https://discuss.elastic.co/t/can-i-snapshot-only-a-couple-types-within-my-index/63426 "2016-10-19T17:41:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![weed101](https://avatars.discourse-cdn.com/v4/letter/w/f05b48/32.png) [@weed101](https://discuss.elastic.co/u/weed101)\
**Post date:** [October 19, 2016, 5:41pm UTC](https://discuss.elastic.co/t/can-i-snapshot-only-a-couple-types-within-my-index/63426/1 "2016-10-19T17:41:50Z")

</div>

I have an index called "index1". Within index1, I have multiple types "type1", "type2", "type3".

Is there a way to snapshot the index and only "type1" and "type3" and do not snapshot "type2" of the index?

My use case here is, I do not want to snapshot or save off any of the data in my index's "type2" type.

The documentation here: [https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html) helped me to create a snapshot of all of my indices. But with the amount of disk space I have available for snapshots. I found that there are a couple TYPES I don't need to worry about capturing in a snapshot and would prefer not to save them.

Any insight would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [October 19, 2016, 6:05pm UTC](https://discuss.elastic.co/t/can-i-snapshot-only-a-couple-types-within-my-index/63426/2 "2016-10-19T18:05:11Z")

</div>

Not with just the Snapshot functionality, no. It only knows how to backup entire indices, not individual types. The Snapshot functionality works by backing up Lucene segments, which are chunks of data that make up the index. Each segment contains multiple documents.

The reason types can't be split out is because under the covers, types are just fields on the document. So all the types are mixed up inside a single segment, meaning there isn't a single data structure to split out and backup.

You could theoretically use the [Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/docs-reindex.html) to reindex the individual types you care about into a dedicated, new index. Then Snapshot that newly created index. That does mean, however, that you have to perform that reindexing operation which may expensive/time consuming depending on how much data you have.

---

<div class="post-metadata">

**Author:** ![weed101](https://avatars.discourse-cdn.com/v4/letter/w/f05b48/32.png) [@weed101](https://discuss.elastic.co/u/weed101)\
**Post date:** [October 19, 2016, 7:33pm UTC](https://discuss.elastic.co/t/can-i-snapshot-only-a-couple-types-within-my-index/63426/3 "2016-10-19T19:33:05Z")

</div>

Thanks for the quick reply and insight.

---

<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:** [July 5, 2017, 10:11pm UTC](https://discuss.elastic.co/t/can-i-snapshot-only-a-couple-types-within-my-index/63426/4 "2017-07-05T22:11:07Z")

</div>


