# Restore backup and shard allocation filtering

**URL:** <https://discuss.elastic.co/t/restore-backup-and-shard-allocation-filtering/77331>\
**Category:** Elasticsearch\
**Created:** [March 3, 2017, 3:43pm UTC](https://discuss.elastic.co/t/restore-backup-and-shard-allocation-filtering/77331 "2017-03-03T15:43:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![msqsf](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@msqsf](https://discuss.elastic.co/u/msqsf)\
**Post date:** [March 3, 2017, 3:43pm UTC](https://discuss.elastic.co/t/restore-backup-and-shard-allocation-filtering/77331/1 "2017-03-03T15:43:39Z")

</div>

We are still using ElasticSearch 1.7 and have cluster with 6 data nodes.  
One of the indices is allocated via Shard Allocation Filtering to 4 nodes in the cluster.

I'm trying to snapshot/restore it to another two nodes and don't have any luck.

1. create backup with ignore\_global\_state: true
2. create empty index with settings which allocate it to two nodes. close it.
3. restore backup to closed index with ignore\_global\_state: true with assumption that it will respect index settings of closed index with mappings being the same.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![msqsf](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@msqsf](https://discuss.elastic.co/u/msqsf)\
**Post date:** [March 3, 2017, 4:22pm UTC](https://discuss.elastic.co/t/restore-backup-and-shard-allocation-filtering/77331/2 "2017-03-03T16:22:11Z")

</div>

nvm, figured that out.

````auto
      "indices": "test_4",
     "ignore_unavailable": true,
     "include_global_state": false,
     "rename_pattern": "test_(.+)",
     "rename_replacement": "test_5",
     "index_settings": {
       "index.routing.allocation.include.tag": "tag0,tag1"
     }
   }```
````

---

<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:** [March 31, 2017, 4:22pm UTC](https://discuss.elastic.co/t/restore-backup-and-shard-allocation-filtering/77331/3 "2017-03-31T16:22:36Z")

</div>

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