# How to save security configuration between cluster reinstall?

**URL:** <https://discuss.elastic.co/t/how-to-save-security-configuration-between-cluster-reinstall/265331>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Tags:** elastic-stack-security, snapshot-and-restore\
**Created:** [February 24, 2021, 11:35am UTC](https://discuss.elastic.co/t/how-to-save-security-configuration-between-cluster-reinstall/265331 "2021-02-24T11:35:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mchudinov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mchudinov/32/82618_2.png) [@mchudinov](https://discuss.elastic.co/u/mchudinov)\
**Post date:** [February 24, 2021, 11:35am UTC](https://discuss.elastic.co/t/how-to-save-security-configuration-between-cluster-reinstall/265331/1 "2021-02-24T11:35:55Z")

</div>

How to save security configuration between Elasticsearch cluster reinstallation?  
Are the volumes attached to the Elasticsearch pods persistent and can be reattached to the new installation?  
Or is snapshot and restore the only way?

---

<div class="post-metadata">

**Author:** ![pebrc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pebrc/32/101790_2.png) [@pebrc](https://discuss.elastic.co/u/pebrc)\
**Post date:** [February 24, 2021, 12:59pm UTC](https://discuss.elastic.co/t/how-to-save-security-configuration-between-cluster-reinstall/265331/2 "2021-02-24T12:59:34Z")

</div>

1. Currently, snapshot is the only option.
2. In theory if your volume provisioner is configured to retain the persistent volumes you could reattach them to a new cluster. We have a script that does that [here](https://github.com/elastic/cloud-on-k8s/tree/master/support/reattach-pv) But that's meant for desaster recovery and not for regular and planned operations
3. We are thinking about [adding an option](https://github.com/elastic/cloud-on-k8s/tree/master/support/reattach-pv) to allow users to specify whether they want the persistent volume claims to be retained after they delete a Elasticsearch cluster. This would allow you to just recreate an Elasticsearch cluster with the same name and you would get your data back.

---

<div class="post-metadata">

**Author:** ![mchudinov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mchudinov/32/82618_2.png) [@mchudinov](https://discuss.elastic.co/u/mchudinov)\
**Post date:** [February 24, 2021, 6:09pm UTC](https://discuss.elastic.co/t/how-to-save-security-configuration-between-cluster-reinstall/265331/3 "2021-02-24T18:09:26Z")

</div>

Is snapshot-restore of security configuration an x-pack feature?

---

<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 25, 2021, 2:55am UTC](https://discuss.elastic.co/t/how-to-save-security-configuration-between-cluster-reinstall/265331/4 "2021-02-25T02:55:36Z")

</div>

No, it's base functionality - [Snapshot and restore | Elasticsearch Reference [7.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.11/snapshot-restore.html)

---

<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 25, 2021, 2:55am UTC](https://discuss.elastic.co/t/how-to-save-security-configuration-between-cluster-reinstall/265331/5 "2021-03-25T02:55:41Z")

</div>

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