# Taking BackUp of Closed Indices on Local File System

**URL:** <https://discuss.elastic.co/t/taking-backup-of-closed-indices-on-local-file-system/24302>\
**Category:** Elasticsearch\
**Created:** [June 25, 2015, 5:58am UTC](https://discuss.elastic.co/t/taking-backup-of-closed-indices-on-local-file-system/24302 "2015-06-25T05:58:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [June 25, 2015, 5:58am UTC](https://discuss.elastic.co/t/taking-backup-of-closed-indices-on-local-file-system/24302/1 "2015-06-25T05:58:50Z")

</div>

I am trying to Archive (BackUP) the closed Indices, by taking a copy and saving it in our Local File System and delete the closed indices after successful copy.

Please advice on it.

---

<div class="post-metadata">

**Author:** ![mosiddi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mosiddi/32/577_2.png) [@mosiddi](https://discuss.elastic.co/u/mosiddi)\
**Post date:** [June 25, 2015, 8:53am UTC](https://discuss.elastic.co/t/taking-backup-of-closed-indices-on-local-file-system/24302/2 "2015-06-25T08:53:55Z")

</div>

do u have the indices in one-node? If not, what is it u are backing? all primaries/replicas? Why not use backup feature of ES?

---

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [June 25, 2015, 9:25am UTC](https://discuss.elastic.co/t/taking-backup-of-closed-indices-on-local-file-system/24302/3 "2015-06-25T09:25:06Z")

</div>

Yes its on 1 node and all the data is primary. I have to capture all the closed indices and archive

Are you suggesting Snapshot feature.

Please share steps or sample code.

---

<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:** [June 25, 2015, 9:53am UTC](https://discuss.elastic.co/t/taking-backup-of-closed-indices-on-local-file-system/24302/4 "2015-06-25T09:53:20Z")

</div>

I think an index needs to be open if you're going to include it in a snapshot.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 25, 2015, 10:49am UTC](https://discuss.elastic.co/t/taking-backup-of-closed-indices-on-local-file-system/24302/5 "2015-06-25T10:49:21Z")

</div>

You cannot snapshot closed indices as they are unavailable.  
If you have a single node you can also take snapshots to the local FS.

---

<div class="post-metadata">

**Author:** ![mosiddi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mosiddi/32/577_2.png) [@mosiddi](https://discuss.elastic.co/u/mosiddi)\
**Post date:** [June 25, 2015, 11:43am UTC](https://discuss.elastic.co/t/taking-backup-of-closed-indices-on-local-file-system/24302/6 "2015-06-25T11:43:49Z")

</div>

For one-node scenarios backing the index from the data folder and using later works fine. We tried in test environments and it worked fine.

---

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [June 25, 2015, 12:21pm UTC](https://discuss.elastic.co/t/taking-backup-of-closed-indices-on-local-file-system/24302/7 "2015-06-25T12:21:31Z")

</div>

Please share the steps for implementation.

---

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [June 25, 2015, 12:23pm UTC](https://discuss.elastic.co/t/taking-backup-of-closed-indices-on-local-file-system/24302/8 "2015-06-25T12:23:03Z")

</div>

We don't have other way, like finding the closed indices and copy it to a different location as a backup

---

<div class="post-metadata">

**Author:** ![mosiddi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mosiddi/32/577_2.png) [@mosiddi](https://discuss.elastic.co/u/mosiddi)\
**Post date:** [June 25, 2015, 3:41pm UTC](https://discuss.elastic.co/t/taking-backup-of-closed-indices-on-local-file-system/24302/9 "2015-06-25T15:41:23Z")

</div>

what do u mean by implementation? What we do (in our test environment), close the index, go to ES data folder =\> [es cluster name] =\> nodes =\> 0 =\> [index name] and take a backup of the folder.

---

<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 6, 2017, 12:05am UTC](https://discuss.elastic.co/t/taking-backup-of-closed-indices-on-local-file-system/24302/10 "2017-07-06T00:05:24Z")

</div>


