# How to backup ES cluster

**URL:** <https://discuss.elastic.co/t/how-to-backup-es-cluster/24256>\
**Category:** Elasticsearch\
**Created:** [June 24, 2015, 11:34am UTC](https://discuss.elastic.co/t/how-to-backup-es-cluster/24256 "2015-06-24T11:34:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilesh\_Date](https://avatars.discourse-cdn.com/v4/letter/n/a9a28c/32.png) [@Nilesh\_Date](https://discuss.elastic.co/u/Nilesh_Date)\
**Post date:** [June 24, 2015, 11:34am UTC](https://discuss.elastic.co/t/how-to-backup-es-cluster/24256/1 "2015-06-24T11:34:41Z")

</div>

I saw the documentation in below link regarding backing up cluster .

[https://www.elastic.co/guide/en/elasticsearch/guide/master/backing-up-your-cluster.html](https://www.elastic.co/guide/en/elasticsearch/guide/master/backing-up-your-cluster.html)

It says we can create shared repository to backup cluster.  
My question is where to run below command ? I am using redhat Linux as operating system and there is no put command.  
Please correct me If I am wrong .

PUT \_snapshot/my\_backup

---

<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 24, 2015, 11:51am UTC](https://discuss.elastic.co/t/how-to-backup-es-cluster/24256/2 "2015-06-24T11:51:59Z")

</div>

curl -XPUT ...

---

<div class="post-metadata">

**Author:** ![Nilesh\_Date](https://avatars.discourse-cdn.com/v4/letter/n/a9a28c/32.png) [@Nilesh\_Date](https://discuss.elastic.co/u/Nilesh_Date)\
**Post date:** [June 24, 2015, 12:17pm UTC](https://discuss.elastic.co/t/how-to-backup-es-cluster/24256/3 "2015-06-24T12:17:28Z")

</div>

thanks David.

What will be the full command If i want to see my repository details. Lets  
say repo name is my\_backup

Thanks,  
_Nilesh Date_

---

<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 24, 2015, 12:51pm UTC](https://discuss.elastic.co/t/how-to-backup-es-cluster/24256/4 "2015-06-24T12:51:22Z")

</div>

`GET _snapshot/my_backup`

which can be translated to:

```auto
curl -XGET localhost:9200/_snapshot/my_backup?pretty

```

---

<div class="post-metadata">

**Author:** ![Nilesh\_Date](https://avatars.discourse-cdn.com/v4/letter/n/a9a28c/32.png) [@Nilesh\_Date](https://discuss.elastic.co/u/Nilesh_Date)\
**Post date:** [June 24, 2015, 2:47pm UTC](https://discuss.elastic.co/t/how-to-backup-es-cluster/24256/5 "2015-06-24T14:47:56Z")

</div>

perfect, thanks !!

---

<div class="post-metadata">

**Author:** ![Nilesh\_Date](https://avatars.discourse-cdn.com/v4/letter/n/a9a28c/32.png) [@Nilesh\_Date](https://discuss.elastic.co/u/Nilesh_Date)\
**Post date:** [June 24, 2015, 2:50pm UTC](https://discuss.elastic.co/t/how-to-backup-es-cluster/24256/6 "2015-06-24T14:50:24Z")

</div>

Next thing is , Can I restore a data based on time interval ?  
Document says , data will get restored based on Index.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 24, 2015, 2:52pm UTC](https://discuss.elastic.co/t/how-to-backup-es-cluster/24256/7 "2015-06-24T14:52:24Z")

</div>

You can have multiple snapshots of each index. If you name your snapshots after the time when they were started it's easy to implement restore operations based on time.

---

<div class="post-metadata">

**Author:** ![Nilesh\_Date](https://avatars.discourse-cdn.com/v4/letter/n/a9a28c/32.png) [@Nilesh\_Date](https://discuss.elastic.co/u/Nilesh_Date)\
**Post date:** [July 1, 2015, 11:29am UTC](https://discuss.elastic.co/t/how-to-backup-es-cluster/24256/8 "2015-07-01T11:29:22Z")

</div>

thanks .

---

<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 6, 2017, 12:04am UTC](https://discuss.elastic.co/t/how-to-backup-es-cluster/24256/9 "2017-07-06T00:04:17Z")

</div>


