# How to use snapshot repo url

**URL:** <https://discuss.elastic.co/t/how-to-use-snapshot-repo-url/348274>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [November 29, 2023, 8:05pm UTC](https://discuss.elastic.co/t/how-to-use-snapshot-repo-url/348274 "2023-11-29T20:05:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harper\_S1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harper_s1/32/103430_2.png) [@Harper\_S1](https://discuss.elastic.co/u/Harper_S1)\
**Post date:** [November 29, 2023, 8:05pm UTC](https://discuss.elastic.co/t/how-to-use-snapshot-repo-url/348274/1 "2023-11-29T20:05:15Z")

</div>

Hi,

We are creating a parallel cluster and we need to migrate all the data. I saw the option where we can take the snapshot on existing cluster and create a repo url which can be used by another cluster and we can restore to the target cluster.

I tried the following option.

```auto
PUT {{elkbaseurl}}/_snapshot/my_read_only_url_repository 
{ 
"type": "url", 
"settings": { "url": "file:/opt/snapshots/68" } 
}

```

repo is registered. but I am not able to figure out, what is the url, and how to access.

Thanks!

---

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [November 30, 2023, 4:19pm UTC](https://discuss.elastic.co/t/how-to-use-snapshot-repo-url/348274/2 "2023-11-30T16:19:03Z")

</div>

> [@Harper\_S1](#):
>
> but I am not able to figure out, what is the url, and how to access.

Hi,

the URL you're using (`file:/opt/snapshots/68` ) is for a local file system.

---

<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:** [December 28, 2023, 4:19pm UTC](https://discuss.elastic.co/t/how-to-use-snapshot-repo-url/348274/3 "2023-12-28T16:19:30Z")

</div>

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