# How to restore all indices from a snapshot location?

**URL:** https://discuss.elastic.co/t/how-to-restore-all-indices-from-a-snapshot-location/107185
**Category:** Elasticsearch
**Created:** [November 10, 2017, 12:33pm UTC](https://discuss.elastic.co/t/how-to-restore-all-indices-from-a-snapshot-location/107185 "2017-11-10T12:33:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)
#### Post date: [November 10, 2017, 12:33pm UTC](https://discuss.elastic.co/t/how-to-restore-all-indices-from-a-snapshot-location/107185/1 "2017-11-10T12:33:10Z")

</div>

Hi,

I have created a snapshot and below is the structure of my snapshots using `GET /_snapshot/ESSnapshots/*` command.

```
{
  "snapshots": [
    {
      "snapshot": "mylogs1backup-20170920000007",
      "uuid": "XRpT_8feTneGpks2G9w94g",
      "version_id": 5000099,
      "version": "5.0.0",
      "indices": [
        "mylogs1-2017-09-10"
      ],
      "state": "SUCCESS",
      "start_time": "2017-09-20T00:00:07.947Z",
      "start_time_in_millis": 1505865607947,
      "end_time": "2017-09-20T00:02:39.190Z",
      "end_time_in_millis": 1505865759190,
      "duration_in_millis": 151243,
      "failures": [],
      "shards": {
        "total": 5,
        "failed": 0,
        "successful": 5
      }
    },
    {
      "snapshot": "mylogs2backup-20170920000240",
      "uuid": "O3CvBaJWRJOeV9tKBRpSSQ",
      "version_id": 5000099,
      "version": "5.0.0",
      "indices": [
        "mylogs2-2017-09-10"
      ],
      "state": "SUCCESS",
      "start_time": "2017-09-20T00:02:40.182Z",
      "start_time_in_millis": 1505865760182,
      "end_time": "2017-09-20T00:03:56.995Z",
      "end_time_in_millis": 1505865836995,
      "duration_in_millis": 76813,
      "failures": [],
      "shards": {
        "total": 5,
        "failed": 0,
        "successful": 5
      }
    },
	.
	.
	.
	.
	
  ]
}

```

and there are more. If I use

```
POST _snapshot/ESSnapshots/mylogs1backup-20170920000007/_restore

```

it will restore my snapshot. It works fine. But is there any option to restore all snapshots at once using a single command like;

```
POST _snapshot/ESSnapshots/*/_restore

```

This command creates error. Is there any way to restore all snapshots from single location?

Thanks in advance.

---

<div class="post-metadata">

### Author: ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)
#### Post date: [November 17, 2017, 11:00pm UTC](https://discuss.elastic.co/t/how-to-restore-all-indices-from-a-snapshot-location/107185/2 "2017-11-17T23:00:44Z")

</div>

It is not possible, you will need to restore these snapshots one at a time. Typically different snapshots contain data from the same set of indices at different points of times. So, in a typical scenario restoring all snapshots at the same time would make little sense. You case is somewhat unique since you have one snapshot per index for some reason.

---

<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: [December 15, 2017, 11:01pm UTC](https://discuss.elastic.co/t/how-to-restore-all-indices-from-a-snapshot-location/107185/3 "2017-12-15T23:01:06Z")

</div>

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