# How to restore an external snapshot

**URL:** <https://discuss.elastic.co/t/how-to-restore-an-external-snapshot/281868>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [August 18, 2021, 6:36pm UTC](https://discuss.elastic.co/t/how-to-restore-an-external-snapshot/281868 "2021-08-18T18:36:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yrtqz](https://avatars.discourse-cdn.com/v4/letter/y/9de053/32.png) [@yrtqz](https://discuss.elastic.co/u/yrtqz)\
**Post date:** [August 18, 2021, 6:36pm UTC](https://discuss.elastic.co/t/how-to-restore-an-external-snapshot/281868/1 "2021-08-18T18:36:17Z")

</div>

Hello,  
The use case I'm trying to do is as follows: on elasticsearch instance A inside a docker container, a snapshot is taken, and all the relevant snapshot files are copied out of the container and sent in a zip to be used by elasticsearch instance B inside another docker container. The idea is then to use the snapshot files inside the zip to reproduce elasticsearch instance A inside of instance B. to do this, do i need to register a snapshot repository inside of instance b, scp the files from the saved snapshot inside instance b'sthe repo path, then use the restore api?

---

<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:** [August 18, 2021, 6:50pm UTC](https://discuss.elastic.co/t/how-to-restore-an-external-snapshot/281868/2 "2021-08-18T18:50:37Z")

</div>

It sounds like you want to make a repository backup and then restore it, which is covered in the docs:

> **[Register a snapshot repository | Elasticsearch Guide \[7.14\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-register-repository.html#snapshots-repository-backup)**

It's pretty much what you described, except you shouldn't register the repository until after you've finished moving files around.

---

<div class="post-metadata">

**Author:** ![yrtqz](https://avatars.discourse-cdn.com/v4/letter/y/9de053/32.png) [@yrtqz](https://discuss.elastic.co/u/yrtqz)\
**Post date:** [August 18, 2021, 7:02pm UTC](https://discuss.elastic.co/t/how-to-restore-an-external-snapshot/281868/3 "2021-08-18T19:02:18Z")

</div>

thanks, i missed that in the docs somehow.

---

<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:** [September 15, 2021, 7:02pm UTC](https://discuss.elastic.co/t/how-to-restore-an-external-snapshot/281868/4 "2021-09-15T19:02:50Z")

</div>

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