# How could I restore snapshot from another elasticsearch server's repository?

**URL:** <https://discuss.elastic.co/t/how-could-i-restore-snapshot-from-another-elasticsearch-servers-repository/276731>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [June 23, 2021, 7:05am UTC](https://discuss.elastic.co/t/how-could-i-restore-snapshot-from-another-elasticsearch-servers-repository/276731 "2021-06-23T07:05:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soohyun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/soohyun/32/90679_2.png) [@soohyun](https://discuss.elastic.co/u/soohyun)\
**Post date:** [June 23, 2021, 7:05am UTC](https://discuss.elastic.co/t/how-could-i-restore-snapshot-from-another-elasticsearch-servers-repository/276731/1 "2021-06-23T07:05:44Z")

</div>

I have two different Elasticsearch clusters (for example, the name of the server is `test-elk-ver6` and `test-elk-ver7`) which has run on the different server.

I want to migrate the data from `test-elk-ver6` to `test-elk-ver7`, so I tried to take a snapshot of `test-elk-ver6` at `test-elk-ver6`'s local repository, then restore it at the `test-elk-ver7`.

However, it seems like that there is no way to register `test-elk-ver6`'s repository on the `test-elk-ver7`. (Or maybe I didn't know how I could)

I have read the [Read-only URL repository](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-register-repository.html#snapshots-read-only-repository), but I have no idea how to specify `test-elk-ver6`'s repository to "settings".

```auto
PUT /_snapshot/my_read_only_url_repository
{
  "type": "url",
  "settings": {
    // how could specify the repository? just location of the repository will be enough?
    "url": "http://{test-elk-ver6's ip addr}/????" 
  }
}

```

Should I just zip the snapshot from the `test-elk-ver6` and move it to the `test-elk-ver7` for restoring it? Or is there any way to register the repository from another server?

---

<div class="post-metadata">

**Author:** ![soohyun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/soohyun/32/90679_2.png) [@soohyun](https://discuss.elastic.co/u/soohyun)\
**Post date:** [June 23, 2021, 9:50am UTC](https://discuss.elastic.co/t/how-could-i-restore-snapshot-from-another-elasticsearch-servers-repository/276731/2 "2021-06-23T09:50:00Z")

</div>

Just using Nginx for routing the repository's path, then everything solved.

---

<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 21, 2021, 9:50am UTC](https://discuss.elastic.co/t/how-could-i-restore-snapshot-from-another-elasticsearch-servers-repository/276731/3 "2021-07-21T09:50:46Z")

</div>

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