# We are using 6.8 version ELK stack, WE are using below dev tools syntax to take 9 months snaphots manually. PLease help me with code to automate it

**URL:** <https://discuss.elastic.co/t/we-are-using-6-8-version-elk-stack-we-are-using-below-dev-tools-syntax-to-take-9-months-snaphots-manually-please-help-me-with-code-to-automate-it/369516>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [October 28, 2024, 7:30am UTC](https://discuss.elastic.co/t/we-are-using-6-8-version-elk-stack-we-are-using-below-dev-tools-syntax-to-take-9-months-snaphots-manually-please-help-me-with-code-to-automate-it/369516 "2024-10-28T07:30:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![namya\_k](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/namya_k/32/138766_2.png) [@namya\_k](https://discuss.elastic.co/u/namya_k)\
**Post date:** [October 28, 2024, 7:30am UTC](https://discuss.elastic.co/t/we-are-using-6-8-version-elk-stack-we-are-using-below-dev-tools-syntax-to-take-9-months-snaphots-manually-please-help-me-with-code-to-automate-it/369516/1 "2024-10-28T07:30:53Z")

</div>

PUT /\_snapshot/cold\_storage/snapshot\_2024.06.21  
{  
"indices": [  
"unix-syslog-2024.05.13",

"av-log-2024.05.13",

"filebeat-2024.06.04",

"ad-server-logs-2024.05.13",

"winlog-2024.05.13",

"nice-audit-2024.05.13",

"unix-servers-2024.05.13",

"community-pharmacy-devices-2024.05.13"  
],  
"ignore\_unavailable": false,  
"include\_global\_state": true  
}
