# How to backup / restore kibana index?

**URL:** <https://discuss.elastic.co/t/how-to-backup-restore-kibana-index/77121>\
**Category:** Kibana\
**Created:** [March 2, 2017, 10:17am UTC](https://discuss.elastic.co/t/how-to-backup-restore-kibana-index/77121 "2017-03-02T10:17:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [March 2, 2017, 10:17am UTC](https://discuss.elastic.co/t/how-to-backup-restore-kibana-index/77121/1 "2017-03-02T10:17:29Z")

</div>

Hi,

as far as I know, kibana is storing all of its data in an own index in elasticsearch.  
Since plain kibana (xpack is too expensive for us) does not have any user roles, each user is equal and can modify or delete anything in kibana. By mistake dashboard may break, or whatever.

My intention now is to setup an automatic backup of the content of the kibana index. I thought of following option:

backup:

- export the whole kibana index via curl  
restore:
- stop kibana
- delete kibana index
- create new kibana index
- put all data from backup file to the index.

Then I can schedule the backup by cron for hourly or daily.

How can that be achieved? Are there any pitfalls I did not see?  
Thanks Andreas

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [March 2, 2017, 9:28pm UTC](https://discuss.elastic.co/t/how-to-backup-restore-kibana-index/77121/2 "2017-03-02T21:28:47Z")

</div>

hi @asp,

at first glance, that looks alright.

Have you looked at the snapshot/restore functionality of ES? [https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html)

That's probably the most straightforward way to create backups of an index.

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [March 3, 2017, 8:44pm UTC](https://discuss.elastic.co/t/how-to-backup-restore-kibana-index/77121/3 "2017-03-03T20:44:05Z")

</div>

You might also want to try out [elasticdump](https://www.npmjs.com/package/elasticdump).

It's not created or supported by Elastic company, but it's pretty handy.

Regards,  
Lee

---

<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, 8:44pm UTC](https://discuss.elastic.co/t/how-to-backup-restore-kibana-index/77121/4 "2017-03-31T20:44:06Z")

</div>

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