# Moving over snapshot to another system doesn't get added to registered repo

**URL:** <https://discuss.elastic.co/t/moving-over-snapshot-to-another-system-doesnt-get-added-to-registered-repo/300892>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [March 28, 2022, 8:11pm UTC](https://discuss.elastic.co/t/moving-over-snapshot-to-another-system-doesnt-get-added-to-registered-repo/300892 "2022-03-28T20:11:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hishamnajem](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@hishamnajem](https://discuss.elastic.co/u/hishamnajem)\
**Post date:** [March 28, 2022, 8:11pm UTC](https://discuss.elastic.co/t/moving-over-snapshot-to-another-system-doesnt-get-added-to-registered-repo/300892/1 "2022-03-28T20:11:40Z")

</div>

I am taking a snapshot on system 1 and transferring the index-X, index.latest, meta-_... and snap-_.... over to system 2 under the same registered repo. System 2 does not find snapshot for restore.

On SYSTEM 1:  
--\> curl -X PUT "X.X.X.X:9200/\_snapshot/es\_backup?pretty" -H 'Content-Type: application/json' -d'{ "type":"fs", "settings": { "location": "/var/lib/backups/es-snapshots" } }' SUCCESS  
--\> curl -XPUT "[http://X.X.X.X:9200/\_snapshot/es\_backup/testsnap?pretty](http://X.X.X.X:9200/_snapshot/es_backup/testsnap?pretty)" -H 'Content-Type: application/json' -d' { "indices": "filebeat-7.15.0-2022.03.28-000167", "ignore\_unavailable": true, "include\_global\_state": true}' SUCCESS

--\> SCP to SYSTEM2 under same path.repo path.  
on System 2:  
curl -X GET "XXXX:9200/\_snapshot/es\_backup/\_all?pretty"  
{  
"snapshots" : ,  
"total" : 0,  
"remaining" : 0  
}  
How can I make system 2 aware of the snapshot?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 28, 2022, 10:33pm UTC](https://discuss.elastic.co/t/moving-over-snapshot-to-another-system-doesnt-get-added-to-registered-repo/300892/2 "2022-03-28T22:33:38Z")

</div>

Welcome to our community! 😃

What is the scp command you are running?  
Also please format your code/logs/config using the `</>` button, or markdown style back ticks. It helps to make things easy to read which helps us help you 🙂

---

<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:** [March 29, 2022, 8:18am UTC](https://discuss.elastic.co/t/moving-over-snapshot-to-another-system-doesnt-get-added-to-registered-repo/300892/3 "2022-03-29T08:18:12Z")

</div>

See [this note in the docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-restore.html#snapshot-repository-contents):

> **Don’t modify anything within the repository or run processes that might interfere with its contents.**... You may however safely [restore a repository from a backup](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-register-repository.html#snapshots-repository-backup)

It sounds like you are modifying the contents of a repository but you are not following the proper procedure for restoring a repository from a backup.

---

<div class="post-metadata">

**Author:** ![hishamnajem](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@hishamnajem](https://discuss.elastic.co/u/hishamnajem)\
**Post date:** [March 29, 2022, 2:20pm UTC](https://discuss.elastic.co/t/moving-over-snapshot-to-another-system-doesnt-get-added-to-registered-repo/300892/4 "2022-03-29T14:20:14Z")

</div>

Sorry I meant I'm simply winscp'ing it over to the other machine.  
I'm following these steps: [https://kifarunix.com/restore-elasticsearch-snapshot-to-another-cluster/](https://kifarunix.com/restore-elasticsearch-snapshot-to-another-cluster/)

---

<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:** [March 29, 2022, 3:31pm UTC](https://discuss.elastic.co/t/moving-over-snapshot-to-another-system-doesnt-get-added-to-registered-repo/300892/5 "2022-03-29T15:31:09Z")

</div>

I'm not sure the steps in that article really work, at least not reliably. You should follow the instructions in the reference manual.

---

<div class="post-metadata">

**Author:** ![hishamnajem](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@hishamnajem](https://discuss.elastic.co/u/hishamnajem)\
**Post date:** [March 29, 2022, 8:31pm UTC](https://discuss.elastic.co/t/moving-over-snapshot-to-another-system-doesnt-get-added-to-registered-repo/300892/6 "2022-03-29T20:31:49Z")

</div>

Thank you, the docs truly are the best reference if you read them carefully :).

---

<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:** [April 26, 2022, 8:32pm UTC](https://discuss.elastic.co/t/moving-over-snapshot-to-another-system-doesnt-get-added-to-registered-repo/300892/7 "2022-04-26T20:32:19Z")

</div>

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