# Backup and Restore RED

**URL:** <https://discuss.elastic.co/t/backup-and-restore-red/91270>\
**Category:** Elasticsearch\
**Created:** [June 29, 2017, 11:19am UTC](https://discuss.elastic.co/t/backup-and-restore-red/91270 "2017-06-29T11:19:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ledoc](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@ledoc](https://discuss.elastic.co/u/ledoc)\
**Post date:** [June 29, 2017, 11:19am UTC](https://discuss.elastic.co/t/backup-and-restore-red/91270/1 "2017-06-29T11:19:53Z")

</div>

Hello all  
Im trying to test backup and restore of ES.  
I have draylog data and an elasticsearch 2.3.3 database.

Here What I want to do:  
1 - Create repository --\> OK  
2 - Snapshot one index with: curl -XPUT "[http://localhost:9200/\_snapshot/mensuel/${TARGET}?wait\_for\_completion=true](http://localhost:9200/_snapshot/mensuel/%24%7BTARGET%7D?wait_for_completion=true)" -d "{"indices": "${TARGET}", "ignore\_unavailable": true, "include\_global\_state": false}" --\> OK  
3 - Tar this backup --\> OK  
4 - Create a docker container of elasticsearch (official 2.3.3) --\> OK  
5 - Configure repository, and put in the untared backup --\> OK  
6 - Restore data with: curl -XPOST [http://localhost:9200/\_snapshot/my\_backup/${TARGET}/\_restore](http://localhost:9200/_snapshot/my_backup/%24%7BTARGET%7D/_restore) --\> SUCESS but very quick

7 - Control Data restored with:

root@99655f0e488a:/usr/share/elasticsearch# curl 'localhost:9200/\_cat/indices?v'  
health status index pri rep docs.count docs.deleted store.size pri.store.size  
red open arch\_100 1 0

I don't understand what is wrong !?  
Could you help me to safe my backup process ?

Thanks

---

<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:** [July 9, 2017, 9:13pm UTC](https://discuss.elastic.co/t/backup-and-restore-red/91270/2 "2017-07-09T21:13:29Z")

</div>

Is there anything in the log files? By the way, why not just tar and untar data directory instead? I think it would be much easier.

---

<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:** [August 6, 2017, 9:14pm UTC](https://discuss.elastic.co/t/backup-and-restore-red/91270/3 "2017-08-06T21:14:03Z")

</div>

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