# Elasticseach Backup and Restore

**URL:** <https://discuss.elastic.co/t/elasticseach-backup-and-restore/225301>\
**Category:** Elasticsearch\
**Created:** [March 26, 2020, 10:10pm UTC](https://discuss.elastic.co/t/elasticseach-backup-and-restore/225301 "2020-03-26T22:10:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zkma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zkma/32/66220_2.png) [@zkma](https://discuss.elastic.co/u/zkma)\
**Post date:** [March 26, 2020, 10:10pm UTC](https://discuss.elastic.co/t/elasticseach-backup-and-restore/225301/1 "2020-03-26T22:10:49Z")

</div>

Hi,  
I want to backup an elasticsearch-oss:7.2.0 cluster running in Kubernetes and restore it into a new one elasticsearch:7.2.1 running within ECK

I created a snapshot which looks like to be good (40GB of data)  
curl /\_snapshot/my\_repo/snap1 --\> SUCCESS after about 10mn

However, when I restore it into the new cluster, it seems that indices with large datasets are missing:

```
curl /_snapshot/my_repo/snap1/_restore -d'
{
  "ignore_unavailable": true,
  "include_global_state": true,
  "rename_pattern": "index_(.+)",
  "rename_replacement": "restored_index_$1"
}'

```

Running /\_cat/indices on old then new cluster shows that some data are missing:

```
OLD CLUSTER: green open ind1 aBoy4sS6Tp6_a9Xu3zuuMw 1 1 75 359 1mb 558.8kb
NEW CLUSTER: green open ind1 Dt8NrsYAQRGEfqOa049jPQ 1 1 75 7460 868.5kb 434.2kb

OLD CLUSTER: green open ind2 22IYbVNBSNWmHHKHpoAcmQ 1 1 62592 17113 2gb 773.1mb
NEW CLUSTER: red open ind2 WsbAoc6nSpylZWqnzXvI-A 1 1

```

Any idea how to debug this ?  
Find any error message ?  
Am I missing something to run such backup from my old DB to the new one ?

Thanks a lot for your help!

---

<div class="post-metadata">

**Author:** ![zkma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zkma/32/66220_2.png) [@zkma](https://discuss.elastic.co/u/zkma)\
**Post date:** [March 26, 2020, 11:16pm UTC](https://discuss.elastic.co/t/elasticseach-backup-and-restore/225301/2 "2020-03-26T23:16:15Z")

</div>

I progress on the issue.

Running /\_cat/\_shards/`and`/\_cluster/allocation/explain` helped to figure out what's going on.

Apparently, the name of my VolumeClaimTemplate was wrong, as it must be 'elasticsearch-data'  
[https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-volume-claim-templates.html](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-volume-claim-templates.html)

---

<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:** [April 23, 2020, 11:16pm UTC](https://discuss.elastic.co/t/elasticseach-backup-and-restore/225301/3 "2020-04-23T23:16:15Z")

</div>

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