# Cron Job Expression to take snapshot in Each 15 Mins

**URL:** <https://discuss.elastic.co/t/cron-job-expression-to-take-snapshot-in-each-15-mins/247334>\
**Category:** Elasticsearch\
**Tags:** slm-snapshot-lifecycle-management\
**Created:** [September 3, 2020, 7:35am UTC](https://discuss.elastic.co/t/cron-job-expression-to-take-snapshot-in-each-15-mins/247334 "2020-09-03T07:35:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayush\_Agrahari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_agrahari/32/74932_2.png) [@Ayush\_Agrahari](https://discuss.elastic.co/u/Ayush_Agrahari)\
**Post date:** [September 3, 2020, 7:35am UTC](https://discuss.elastic.co/t/cron-job-expression-to-take-snapshot-in-each-15-mins/247334/1 "2020-09-03T07:35:27Z")

</div>

Hello,

Could you please help me to create Cron Job expression to take snapshot in Each 15 mins in SLM Policy.

Currently I am using below format.  
'curl -X PUT "localhost:9200/\_slm/policy/policy-name?pretty" -H 'Content-Type: application/json' -d  
'{  
"schedule": "\* _/15 \* \* \* ?",  
"name": "\<my-snap-{now/d}\>",  
"repository": "repo-name”,  
"config": {"indices": ["_"]},  
"retention": {"expire\_after": "30d","min\_count": 1,"max\_count": 500}  
}' '  
Above configure seems not working. It is taking snapshot very frequently with this.

Could you also please provide suggestion on min count and max count of retention policy. I want to store data for 30 days and indices would be around 120 in this 30 days.

---

<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:** [October 1, 2020, 7:35am UTC](https://discuss.elastic.co/t/cron-job-expression-to-take-snapshot-in-each-15-mins/247334/2 "2020-10-01T07:35:28Z")

</div>

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