# How to make policy of snapshot?

**URL:** <https://forum.opensearch.org/t/how-to-make-policy-of-snapshot/3119>\
**Category:** Index Management\
**Created:** [June 22, 2020, 5:00am UTC](https://forum.opensearch.org/t/how-to-make-policy-of-snapshot/3119 "2020-06-22T05:00:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![twpower](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@twpower](https://forum.opensearch.org/u/twpower)\
**Post date:** [June 22, 2020, 5:00am UTC](https://forum.opensearch.org/t/how-to-make-policy-of-snapshot/3119/1 "2020-06-22T05:00:14Z")

</div>

Hello?

From version 1.8.0.0, I found that “Adds snapshot operation to Index State Management,”.  
However I cannot find UI or command documents of it.

How can I use it? or where can I find info about managing lifecycle of snapshot?

---

<div class="post-metadata">

**Author:** ![bowenlan](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@bowenlan](https://forum.opensearch.org/u/bowenlan)\
**Post date:** [June 22, 2020, 10:22pm UTC](https://forum.opensearch.org/t/how-to-make-policy-of-snapshot/3119/2 "2020-06-22T22:22:34Z")

</div>

Hi, can you take a try of the snapshot operation like shown here

> **[Policies](https://opendistro.github.io/for-elasticsearch-docs/docs/ism/policies/#snapshot)**
>
> Documentation for Open Distro, the community-driven, 100% open source distribution of Elasticsearch OSS with advanced security, alerting, deep performance analysis, and more.

---

<div class="post-metadata">

**Author:** ![wyllys](https://avatars.discourse-cdn.com/v4/letter/w/54ee81/32.png) [@wyllys](https://forum.opensearch.org/u/wyllys)\
**Post date:** [June 30, 2020, 7:01pm UTC](https://forum.opensearch.org/t/how-to-make-policy-of-snapshot/3119/3 "2020-06-30T19:01:49Z")

</div>

That shows how to manually generate a snapshot, but is there a way to configure a policy to do automated nightly snapshots? In the “other” elasticsearch, there is the “\_ilm/policy” API that allows you to create a policy for doing automated snapshots. If there is an example of an automated snapshot policy, I’d love a pointer.

Are there plans to implement the a policy UI in Kibana?

---

<div class="post-metadata">

**Author:** ![satyamsolanki](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@satyamsolanki](https://forum.opensearch.org/u/satyamsolanki)\
**Post date:** [October 1, 2021, 3:42pm UTC](https://forum.opensearch.org/t/how-to-make-policy-of-snapshot/3119/4 "2021-10-01T15:42:52Z")

</div>

Hello guys,  
I am trying out opendistro Snapshot and restore feature. I have found the API documentation to take snapshots and restore as well. But nowhere I have seen how to automate this process like available in Elastic Stack. Also how can I apply lifecycle to snapshots so that they get deleted after several days. Is this feature available in Open distro as well? Can anyone help me with documentation.

opendistro elastic version -: 1.13.1

Thank you in advance

---

<div class="post-metadata">

**Author:** ![mudboyzh](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@mudboyzh](https://forum.opensearch.org/u/mudboyzh)\
**Post date:** [October 27, 2021, 11:01am UTC](https://forum.opensearch.org/t/how-to-make-policy-of-snapshot/3119/5 "2021-10-27T11:01:58Z")

</div>

You can use [snapshot](https://opendistro.github.io/for-elasticsearch-docs/docs/im/ism/policies/#snapshot) operation in ISM.  
But until 1.13.2, Opendistro seems only taking snapshot, it won’t delete snapshot automatically.  
If you want ot delete snapshot automatically,try [Curator](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/delete_snapshots.html) with your own script.  
It can delete snapshot by snapshot created time.

---

<div class="post-metadata">

**Author:** ![satyamsolanki](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@satyamsolanki](https://forum.opensearch.org/u/satyamsolanki)\
**Post date:** [October 27, 2021, 2:42pm UTC](https://forum.opensearch.org/t/how-to-make-policy-of-snapshot/3119/6 "2021-10-27T14:42:00Z")

</div>

@mudboyzh thanks for your reply,

you suggested Curator for delete a snapshot. So I think you want to say Curator will be delete snapshot with particular scheduled time. let me clear If I want to keep latest 5 snapshot in my repository, than it’s possible with Curator.
