# Migrate backups from S3 to GCP

**URL:** <https://discuss.elastic.co/t/migrate-backups-from-s3-to-gcp/326447>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [February 24, 2023, 1:59pm UTC](https://discuss.elastic.co/t/migrate-backups-from-s3-to-gcp/326447 "2023-02-24T13:59:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pete1](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Pete1](https://discuss.elastic.co/u/Pete1)\
**Post date:** [February 24, 2023, 1:59pm UTC](https://discuss.elastic.co/t/migrate-backups-from-s3-to-gcp/326447/1 "2023-02-24T13:59:11Z")

</div>

Hello, I want to copy all of my backups that have been made using the s3 plugin to Google Cloud Storage. I tried to copy them just like that, but it seems that this is not the way to do it. Is there a tool or is there something that I am missing ?  
I am using elasticsearch 7.16.2

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 24, 2023, 2:01pm UTC](https://discuss.elastic.co/t/migrate-backups-from-s3-to-gcp/326447/2 "2023-02-24T14:01:51Z")

</div>

You mean the snapshots, right?

I don't think this is possible, you will probably need to recreate the snapshots on GCP.

---

<div class="post-metadata">

**Author:** ![Pete1](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Pete1](https://discuss.elastic.co/u/Pete1)\
**Post date:** [February 24, 2023, 2:15pm UTC](https://discuss.elastic.co/t/migrate-backups-from-s3-to-gcp/326447/3 "2023-02-24T14:15:15Z")

</div>

I think i have an ideea, to restore from S3 each snapshot and then to store them in GCS(using gcs-plugin ), but we also have very old snapshots from 2019 that have been done using an older version of elasticsearch...

---

<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:** [February 24, 2023, 2:28pm UTC](https://discuss.elastic.co/t/migrate-backups-from-s3-to-gcp/326447/4 "2023-02-24T14:28:54Z")

</div>

This should work, although it's not something we test. You need to treat it as if you're taking a repository backup, following the [process in the manual](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-register-repository.html#snapshots-repository-backup), and make sure that the layout of the objects in GCS is an exact copy of those in S3.

---

<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:** [March 24, 2023, 2:29pm UTC](https://discuss.elastic.co/t/migrate-backups-from-s3-to-gcp/326447/5 "2023-03-24T14:29:46Z")

</div>

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