# Restore data from archive snapshot

**URL:** <https://discuss.elastic.co/t/restore-data-from-archive-snapshot/286372>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [October 11, 2021, 1:17pm UTC](https://discuss.elastic.co/t/restore-data-from-archive-snapshot/286372 "2021-10-11T13:17:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nazarenko](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@Nazarenko](https://discuss.elastic.co/u/Nazarenko)\
**Post date:** [October 11, 2021, 1:17pm UTC](https://discuss.elastic.co/t/restore-data-from-archive-snapshot/286372/1 "2021-10-11T13:17:54Z")

</div>

Hello everyone!  
I have some problems with restore my data from snapshot.  
Firstly, i created local repositories and create a policy, afther that, i successfully create snapshot.  
Secondly i make archive with content of this directory and clear her. And now i try restoring data from unarchive files, but on kibana i can`t see a snapshot:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/c/4cd27d7e58ff13727e056608ce8f1fbecabdece8.png)  
status of repository:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/c/5cfd002c08affb69156a72d6df2dd1f115844313.png)  
content of directory:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/3/43b6a4baa454a016b360d2970a46c61b4e7ef3ff.png)  
I know, maybe i have incorrect permission, because before are:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/6/76f9cd37bc9dc5fa39a742a2a6e052f3b1a1cd42.png)

I need to restore data from this snapshot.  
I hope that you will help me.

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [October 11, 2021, 4:37pm UTC](https://discuss.elastic.co/t/restore-data-from-archive-snapshot/286372/2 "2021-10-11T16:37:27Z")

</div>

Have you created a policy to create the snapshots ? Selecting what you want to save, which is what you can restore ?

> **[Tutorial: Automate backups with SLM | Elasticsearch Guide \[7.15\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-snapshot-lifecycle-management.html)**

> **[Restore a snapshot | Elasticsearch Guide \[7.15\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-restore-snapshot.html)**

---

<div class="post-metadata">

**Author:** ![Nazarenko](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@Nazarenko](https://discuss.elastic.co/u/Nazarenko)\
**Post date:** [October 12, 2021, 5:39am UTC](https://discuss.elastic.co/t/restore-data-from-archive-snapshot/286372/3 "2021-10-12T05:39:09Z")

</div>

Thanks for your reply, yes, i created policy and successfully created snapshot. But i can`t restore

 ![Untitled Diagsram](https://us1.discourse-cdn.com/elastic/original/3X/1/0/105f10781154f508f5abb4e8247a0077e0c3c4a4.png)  
 ![Untitled Diagram](https://us1.discourse-cdn.com/elastic/original/3X/d/3/d37a4371426b722c1ea4dfccc8d16609b992e79c.png)

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [October 12, 2021, 7:41am UTC](https://discuss.elastic.co/t/restore-data-from-archive-snapshot/286372/4 "2021-10-12T07:41:11Z")

</div>

You didn't describe what you did very clearly, but my guess is that you registered the repository and then unpacked your archive copy. You must never modify the contents of a repository while it's registered with Elasticsearch. The manual has [instructions on backing up and restoring a repository](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-register-repository.html#snapshots-repository-backup) which includes this guidance:

> When restoring a repository from a backup, you must not register the repository with Elasticsearch until the repository contents are fully restored. If you alter the contents of a repository while it is registered with Elasticsearch then the repository may become unreadable or may silently lose some of its contents.

---

<div class="post-metadata">

**Author:** ![Nazarenko](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@Nazarenko](https://discuss.elastic.co/u/Nazarenko)\
**Post date:** [October 12, 2021, 11:14am UTC](https://discuss.elastic.co/t/restore-data-from-archive-snapshot/286372/5 "2021-10-12T11:14:27Z")

</div>

Yeah, i clear contents of a repository, afther than move into this directory other data. I lose my data forever?

---

<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:** [November 9, 2021, 11:14am UTC](https://discuss.elastic.co/t/restore-data-from-archive-snapshot/286372/6 "2021-11-09T11:14:37Z")

</div>

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