# On Backup and Restore can I filter terms on Index?

**URL:** <https://discuss.elastic.co/t/on-backup-and-restore-can-i-filter-terms-on-index/33985>\
**Category:** Elasticsearch\
**Created:** [November 6, 2015, 11:45am UTC](https://discuss.elastic.co/t/on-backup-and-restore-can-i-filter-terms-on-index/33985 "2015-11-06T11:45:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tearsakura](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@tearsakura](https://discuss.elastic.co/u/tearsakura)\
**Post date:** [November 6, 2015, 11:45am UTC](https://discuss.elastic.co/t/on-backup-and-restore-can-i-filter-terms-on-index/33985/1 "2015-11-06T11:45:35Z")

</div>

Something like:

curl -XPUT '[http://xxxxxx:9200/\_snapshot/20151106/snapshot\_3](http://xxxxxx:9200/_snapshot/20151106/snapshot_3)' -d '{  
"indices": "metrics-\*",  
"query": "env=pro",  
"ignore\_unavailable": "true",  
"include\_global\_state": false  
}'

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 6, 2015, 11:51am UTC](https://discuss.elastic.co/t/on-backup-and-restore-can-i-filter-terms-on-index/33985/2 "2015-11-06T11:51:12Z")

</div>

No, this isn't possible with the snapshot/restore APIs. You'd have to restore the whole index to a temporary index and copy the desired documents to the final index.

---

<div class="post-metadata">

**Author:** ![tearsakura](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@tearsakura](https://discuss.elastic.co/u/tearsakura)\
**Post date:** [November 6, 2015, 1:25pm UTC](https://discuss.elastic.co/t/on-backup-and-restore-can-i-filter-terms-on-index/33985/3 "2015-11-06T13:25:30Z")

</div>

Ok! thank you!

---

<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, 11:40pm UTC](https://discuss.elastic.co/t/on-backup-and-restore-can-i-filter-terms-on-index/33985/4 "2017-07-05T23:40:09Z")

</div>


