# ES Index BackUp

**URL:** <https://discuss.elastic.co/t/es-index-backup/8818>\
**Category:** Elasticsearch\
**Created:** [August 22, 2012, 6:21pm UTC](https://discuss.elastic.co/t/es-index-backup/8818 "2012-08-22T18:21:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sumit\_Guptaa](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Sumit\_Guptaa](https://discuss.elastic.co/u/Sumit_Guptaa)\
**Post date:** [August 22, 2012, 6:21pm UTC](https://discuss.elastic.co/t/es-index-backup/8818/1 "2012-08-22T18:21:22Z")

</div>

Hi All,

Unfortunately I have delete my index using Head. Can Anybody tell me how we back up my Index.

Thanx

Regards,  
Sumit Gupta

---

<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:** [August 22, 2012, 7:25pm UTC](https://discuss.elastic.co/t/es-index-backup/8818/2 "2012-08-22T19:25:59Z")

</div>

I would say "ooops". I'm afraid that if you have no backup, you can not restore your data.

For the future, you can add the excellent jetty plugin from Sonian : [https://github.com/sonian/elasticsearch-jetty](https://github.com/sonian/elasticsearch-jetty)

And protect this commands with admin credentials.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 22 août 2012 à 20:21, Sumit Guptaa [sumit.gupta.ngi@gmail.com](mailto:sumit.gupta.ngi@gmail.com) a écrit :

Hi All,

Unfortunately I have delete my index using Head. Can Anybody tell me how we  
back up my Index.

Thanx

Regards,  
Sumit Gupta

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/ES-Index-BackUp-tp4021985.html](http://elasticsearch-users.115913.n3.nabble.com/ES-Index-BackUp-tp4021985.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--

--

---

<div class="post-metadata">

**Author:** ![Radu\_Gheorghe1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe1/32/2688_2.png) [@Radu\_Gheorghe1](https://discuss.elastic.co/u/Radu_Gheorghe1)\
**Post date:** [August 23, 2012, 5:37am UTC](https://discuss.elastic.co/t/es-index-backup/8818/3 "2012-08-23T05:37:34Z")

</div>

For backing up, you need to disable flush on the index you want to back up  
and then just take the stuff from your data directory.

Here's what I currently use for backing up (please note that I'm also  
optimizing and disabling writes before backing up - you might want to  
remove that part):

> <https://gist.github.com/radu-gheorghe/3180985>

As David suggested, this would only help in future - what you already  
deleted is probably gone for good. Unless you can undelete the contents of  
your data dir and even then it might not work.

On Wednesday, August 22, 2012 9:21:23 PM UTC+3, Sumit Gupta wrote:

> Hi All,
> 
> Unfortunately I have delete my index using Head. Can Anybody tell me how  
> we  
> back up my Index.
> 
> Thanx
> 
> Regards,  
> Sumit Gupta
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/ES-Index-BackUp-tp4021985.html](http://elasticsearch-users.115913.n3.nabble.com/ES-Index-BackUp-tp4021985.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--

---

<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, 3:15am UTC](https://discuss.elastic.co/t/es-index-backup/8818/4 "2017-07-06T03:15:24Z")

</div>


