# Elasticsearch Restore snapshot from different azure account

**URL:** <https://discuss.elastic.co/t/elasticsearch-restore-snapshot-from-different-azure-account/101815>\
**Category:** Elasticsearch\
**Created:** [September 26, 2017, 9:55am UTC](https://discuss.elastic.co/t/elasticsearch-restore-snapshot-from-different-azure-account/101815 "2017-09-26T09:55:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narmatha](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Narmatha](https://discuss.elastic.co/u/Narmatha)\
**Post date:** [September 26, 2017, 9:55am UTC](https://discuss.elastic.co/t/elasticsearch-restore-snapshot-from-different-azure-account/101815/1 "2017-09-26T09:55:15Z")

</div>

I need to copy data from the production server into the test server.

How to do this ?

The snapshot is created in production using azure cloud plugin.

Is it possible to restore data from one azure storage to another azure storage account ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 26, 2017, 11:34am UTC](https://discuss.elastic.co/t/elasticsearch-restore-snapshot-from-different-azure-account/101815/2 "2017-09-26T11:34:37Z")

</div>

You can install the same cloud plugin on your test instance and use the same credentials to restore it.  
Don't mix elasticsearch versions though.

---

<div class="post-metadata">

**Author:** ![Narmatha](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Narmatha](https://discuss.elastic.co/u/Narmatha)\
**Post date:** [September 26, 2017, 11:37am UTC](https://discuss.elastic.co/t/elasticsearch-restore-snapshot-from-different-azure-account/101815/3 "2017-09-26T11:37:25Z")

</div>

I have a separate azure cloud storage account credentials for test env.

Is it good to configure the production cloud credentials as secondary for restoring the indices in test ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 26, 2017, 11:52am UTC](https://discuss.elastic.co/t/elasticsearch-restore-snapshot-from-different-azure-account/101815/4 "2017-09-26T11:52:49Z")

</div>

> Is it good to configure the production cloud credentials as secondary for restoring the indices in test ?

Well. Accessing PROD data from a test env does not sound like a good idea to me but if you need it...  
You can try to use azure tools to copy all the content from your PROD repository to the TEST repository. Then restore from the TEST repository. Probably better.

Note that you can probably use the `readonly` mode when creating the repository on the test cluster... I think it applies as well to Azure repositories. See [Snapshot module | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_shared_file_system_repository)

---

<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:** [October 24, 2017, 11:53am UTC](https://discuss.elastic.co/t/elasticsearch-restore-snapshot-from-different-azure-account/101815/5 "2017-10-24T11:53:21Z")

</div>

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