# Elasticsearch backup & restore issue

**URL:** <https://discuss.elastic.co/t/elasticsearch-backup-restore-issue/264324>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [February 15, 2021, 2:34pm UTC](https://discuss.elastic.co/t/elasticsearch-backup-restore-issue/264324 "2021-02-15T14:34:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)\
**Post date:** [February 15, 2021, 2:34pm UTC](https://discuss.elastic.co/t/elasticsearch-backup-restore-issue/264324/1 "2021-02-15T14:34:49Z")

</div>

Hi all,

I'm trying to do backup and restore of elasticsearch data.

I have taken backup of my elasticsearch data.  
But when i try to restore my backup, it gives errror that "cannot restore index [ilm-history-3-000001] because an open index with same name already exists in the cluster."

I'm unable to close or delete the indices : ilm-history-3-000001 , ilm-history-3-000002 and .kibana.  
When i try to close it or delete, it comes back again.

How to go about it?  
Any setting to again restore my data?

---

<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:** [February 16, 2021, 4:00am UTC](https://discuss.elastic.co/t/elasticsearch-backup-restore-issue/264324/2 "2021-02-16T04:00:50Z")

</div>

You cannot restore a snapshot over existing indices. Do you want to restore those system indices?

---

<div class="post-metadata">

**Author:** ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)\
**Post date:** [February 16, 2021, 6:16am UTC](https://discuss.elastic.co/t/elasticsearch-backup-restore-issue/264324/3 "2021-02-16T06:16:11Z")

</div>

Hi,

When i use backup command all indices get backed up including system\_indices.There is no way i can omit them.  
While using the restore command, it becomes an issue with system indices auto generated saying system indices already exist.

---

<div class="post-metadata">

**Author:** ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)\
**Post date:** [February 16, 2021, 1:07pm UTC](https://discuss.elastic.co/t/elasticsearch-backup-restore-issue/264324/4 "2021-02-16T13:07:25Z")

</div>

I got it. I restored only system indices required by kibana and omitted them after rejected by the system.  
I used in dashboard panel instead of command line.

---

<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 16, 2021, 1:07pm UTC](https://discuss.elastic.co/t/elasticsearch-backup-restore-issue/264324/5 "2021-03-16T13:07:42Z")

</div>

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