# Snapshot and date

**URL:** https://discuss.elastic.co/t/snapshot-and-date/186911
**Category:** Elasticsearch
**Created:** [June 21, 2019, 4:25pm UTC](https://discuss.elastic.co/t/snapshot-and-date/186911 "2019-06-21T16:25:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![He\_Pamela](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/he_pamela/32/42370_2.png) [@He\_Pamela](https://discuss.elastic.co/u/He_Pamela)
#### Post date: [June 21, 2019, 4:25pm UTC](https://discuss.elastic.co/t/snapshot-and-date/186911/1 "2019-06-21T16:25:53Z")

</div>

Hi,  
Can I make a Snapshot with a specific date? In my case I just want a snapshot with the last year data. Is it possible?  
Thanks.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 21, 2019, 5:06pm UTC](https://discuss.elastic.co/t/snapshot-and-date/186911/2 "2019-06-21T17:06:45Z")

</div>

Unless you have time based indices it's not possible.  
You have to use the reindex API to select the data you want and then store them within a new index which you can then snapshot.

Why do you want to do that BTW and not snapshot everything?

---

<div class="post-metadata">

### Author: ![He\_Pamela](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/he_pamela/32/42370_2.png) [@He\_Pamela](https://discuss.elastic.co/u/He_Pamela)
#### Post date: [June 21, 2019, 9:24pm UTC](https://discuss.elastic.co/t/snapshot-and-date/186911/3 "2019-06-21T21:24:40Z")

</div>

Yes, my indices are time based.

I want to make this because the reindex API doesn´t work when one instance has security and the other instance doesn't have.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 22, 2019, 2:51am UTC](https://discuss.elastic.co/t/snapshot-and-date/186911/4 "2019-06-22T02:51:53Z")

</div>

> [@He\_Pamela](#):
>
> I want to make this because the reindex API doesn´t work when one instance has security and the other instance doesn't have.

I don't understand what the problem is. What "doesn't work" means here? What kind of error message did you get? On which versions?

> [@He\_Pamela](#):
>
> Yes, my indices are time based.

So you can probably able to select the indices you want based on the name like `foo-2019-*` or use [date math](https://www.elastic.co/guide/en/elasticsearch/reference/current/date-math-index-names.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: [July 20, 2019, 2:52am UTC](https://discuss.elastic.co/t/snapshot-and-date/186911/5 "2019-07-20T02:52:08Z")

</div>

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