# Moving Repo from Backblaze B2 to Local Filesystem

**URL:** <https://kopia.discourse.group/t/moving-repo-from-backblaze-b2-to-local-filesystem/2911>\
**Category:** Support\
**Created:** [May 16, 2024, 3:36pm UTC](https://kopia.discourse.group/t/moving-repo-from-backblaze-b2-to-local-filesystem/2911 "2024-05-16T15:36:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddmm](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@ddmm](https://kopia.discourse.group/u/ddmm)\
**Post date:** [May 16, 2024, 3:36pm UTC](https://kopia.discourse.group/t/moving-repo-from-backblaze-b2-to-local-filesystem/2911/1 "2024-05-16T15:36:49Z")

</div>

Hello,

I’m trying to get off B2 and keep the repo on a local NAS. To avoid high transaction fees I grabbed the B2 Snapshot of my bucket and am trying to add the repo via kopia following the suggestions from here:

> [@Restore from B2 snapshot drive?](https://kopia.discourse.group/t/restore-from-b2-snapshot-drive/774/2):
>
> This can work with only minimal interventions - you need to effectively convert B2 storage format to local repository format and connect to it as if it were a local filesystem repository. There are 2 changes that need to be made: Files in cloud buckets (B2, S3, etc.) don’t have extensions, files in local directory have “.f” extensions for atomicity reasons so you would need to rename each file to end with .f Files in local repositories usually use sharding, but that can be disabled, so whe…

kopia repository connect filesystem --path=/media/nas/b2snapshot/ --flat

However I am getting this error:  
`ERROR error connecting to repository: repository not initialized in the provided storage`

- kopia-cli 0.17.0 on debian
- snapshot contains kopia.blobcfg, kopia.maintenance, kopia.repository, and then 47,000 other files all (now) ending with .f

How can I get the repo to connect & mount so that I can pull files off of it without being on B2 directly?

---

<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:** [May 16, 2024, 4:42pm UTC](https://kopia.discourse.group/t/moving-repo-from-backblaze-b2-to-local-filesystem/2911/2 "2024-05-16T16:42:55Z")

</div>

Here is the answer:

> [@Restore from B2 snapshot drive?](https://kopia.discourse.group/t/restore-from-b2-snapshot-drive/774/2):
>
> Files in cloud buckets (B2, S3, etc.) don’t have extensions, files in local directory have “.f” extensions for atomicity reasons so you would need to rename each file to end with .f

each file… From your description you still have three files to rename:)

---

<div class="post-metadata">

**Author:** ![ddmm](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@ddmm](https://kopia.discourse.group/u/ddmm)\
**Post date:** [May 16, 2024, 5:13pm UTC](https://kopia.discourse.group/t/moving-repo-from-backblaze-b2-to-local-filesystem/2911/3 "2024-05-16T17:13:51Z")

</div>

Hey, thanks for the suggestion. I don’t know why, but I just assumed the kopia information files should’ve been left alone. Adding .f to the remaining allowed me to connect.

Then using `mount all` I can now see the files!

I should’ve just tried to experiment on my own and come to that solution but convinced myself “no those can be left alone”.

Thanks for the input!
