# Creating snapshot every six months

**URL:** <https://discuss.elastic.co/t/creating-snapshot-every-six-months/297870>\
**Category:** Elasticsearch\
**Tags:** slm-snapshot-lifecycle-management\
**Created:** [February 22, 2022, 10:33am UTC](https://discuss.elastic.co/t/creating-snapshot-every-six-months/297870 "2022-02-22T10:33:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangeshs](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mangeshs](https://discuss.elastic.co/u/mangeshs)\
**Post date:** [February 22, 2022, 10:33am UTC](https://discuss.elastic.co/t/creating-snapshot-every-six-months/297870/1 "2022-02-22T10:33:47Z")

</div>

Hi,  
I have lot of records in only one index so I want to create snapshots backup of index every six months and point those to different index pattern so that I can have different dashboards for every six months and one dashboard for current six months.  
First I have to schedule snapshot to every six moths  
found some solution to that using SLM

> **[Create or update snapshot lifecycle policy API | Elasticsearch Guide \[8.0\] |...](https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html)**

```auto
PUT /_slm/policy/daily-snapshots
{
  "schedule": "0 30 1 * * ?", 
  "name": "<daily-snap-{now/d}>", 
  "repository": "my_repository", 
  "config": { 
    "indices": ["data-*", "important"], 
    "ignore_unavailable": false,
    "include_global_state": false
  },
  "retention": { 
    "expire_after": "30d", 
    "min_count": 5, 
    "max_count": 50 
  }
}

```

Is above query and "schedule" Cron Expression as per every six months  
SECOND THING IS  
want to create separate index as per snapshot ?  
Is it available in version 7.4 or not?

---

<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 22, 2022, 11:05pm UTC](https://discuss.elastic.co/t/creating-snapshot-every-six-months/297870/2 "2022-02-22T23:05:56Z")

</div>

> [@mangeshs](#):
>
> Is it available in version 7.4 or not?

No, it was released in 7.5 - [Take a snapshot of one or more indices | Elasticsearch Guide [7.5] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.5/snapshots-take-snapshot.html#automate-snapshots-slm). However anything before 7.10 is [EOL](https://www.elastic.co/support/eol), and no longer supported. You should really be looking at 7.17 as the latest 7.X release.

> [@mangeshs](#):
>
> want to create separate index as per snapshot ?

It's not clear what you mean here.

---

<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 22, 2022, 11:06pm UTC](https://discuss.elastic.co/t/creating-snapshot-every-six-months/297870/3 "2022-03-22T23:06:27Z")

</div>

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