# Migrate server storage

**URL:** <https://kopia.discourse.group/t/migrate-server-storage/3183>\
**Category:** General Topics\
**Created:** [August 9, 2024, 9:51am UTC](https://kopia.discourse.group/t/migrate-server-storage/3183 "2024-08-09T09:51:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![enboig](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@enboig](https://kopia.discourse.group/u/enboig)\
**Post date:** [August 9, 2024, 9:51am UTC](https://kopia.discourse.group/t/migrate-server-storage/3183/1 "2024-08-09T09:51:58Z")

</div>

I am migrating my server storage from S3 to SFTP. What is the best way to migrate all content (snapshots and policies for all users)?  
I have thought in:

1. shutdown kopia-server
2. repo-sync
3. disconect S3 using console command
4. connect to SFTP using console command
5. start kopia-server

Is this correct?

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/kapitainsky/32/535_2.png) [@kapitainsky](https://kopia.discourse.group/u/kapitainsky)\
**Post date:** [August 9, 2024, 10:00am UTC](https://kopia.discourse.group/t/migrate-server-storage/3183/2 "2024-08-09T10:00:17Z")

</div>

Sounds about right. I think I would do the same steps. Let us know if you discover any caveats.

---

<div class="post-metadata">

**Author:** ![enboig](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@enboig](https://kopia.discourse.group/u/enboig)\
**Post date:** [August 12, 2024, 7:34am UTC](https://kopia.discourse.group/t/migrate-server-storage/3183/3 "2024-08-12T07:34:22Z")

</div>

summary: it worked ok, but changing but any repo operation take long time (~10 minutes).

I disconnected by command my repo, connected to the new one, and started server; but it continued connected to S3.  
I disconnected server from S3 repo using web interface (I don’t know if it was really necessary, or should I have waited a little), restarted kopia server, and after long time (I had already written a post because it took really long…) it worked.
