# Is it possible to specify date range on Elastic snapshots?

**URL:** https://discuss.elastic.co/t/is-it-possible-to-specify-date-range-on-elastic-snapshots/263881
**Category:** Elasticsearch
**Created:** [February 10, 2021, 1:54pm UTC](https://discuss.elastic.co/t/is-it-possible-to-specify-date-range-on-elastic-snapshots/263881 "2021-02-10T13:54:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![eeijlar](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@eeijlar](https://discuss.elastic.co/u/eeijlar)
#### Post date: [February 10, 2021, 1:54pm UTC](https://discuss.elastic.co/t/is-it-possible-to-specify-date-range-on-elastic-snapshots/263881/1 "2021-02-10T13:54:25Z")

</div>

With reference to the following documentation:

> **[Snapshot and restore | Elasticsearch Reference \[7.8\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.8/snapshot-restore.html)**

Is it possible to specify a time range for a snapshot? I can't see what the period for the snapshot is. Is it the last day/week/month?

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [February 10, 2021, 2:03pm UTC](https://discuss.elastic.co/t/is-it-possible-to-specify-date-range-on-elastic-snapshots/263881/2 "2021-02-10T14:03:44Z")

</div>

The [get snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/7.8/get-snapshot-api.html) tells you when the snapshot was taken, and what indices it contains. Snapshots are a point-in-time thing, they don't themselves cover a period of time.

---

<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: [February 10, 2021, 2:06pm UTC](https://discuss.elastic.co/t/is-it-possible-to-specify-date-range-on-elastic-snapshots/263881/3 "2021-02-10T14:06:41Z")

</div>

Adding to this that if you are using time based indices, where the index name contains the date of the data which are in it, then you can select only those indices when running the restore.

That's not specifying a time range as per say but is close enough...

---

<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 10, 2021, 2:06pm UTC](https://discuss.elastic.co/t/is-it-possible-to-specify-date-range-on-elastic-snapshots/263881/4 "2021-03-10T14:06:56Z")

</div>

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