Exported S3 storage backup

I tried to export backup data from S3 storage to a local drive. However, I cannot connect it from Kopia. It ask for new password to initialize the storage. Any hints?

You have to use different sharding. The easiest way to achieve it is to use kopia sync-to to copy your repo from S3 to local. It will perform necessary changes and shard the repository (on S3 it is flat).

thank you. can I still connect to it by providing the parameters? without sync.

Well, basically there are two things. 1st was that the params files, where named slightly differently. Depending on the type of repo - filesystem based or S3 these files are named differently:

S3: kopia.maintenance → FS: kopia.maintenance.f
S3: kopia.repository → FS: kopia.repository.f
S3: kopia.blobcfg → FS: kopia.blobcfg.f

Renaming those on the local harddrive should render your repo accessible again, when connecting using the filesystem paramater. Sharding is another issue, but mainly for performance. While S3 buckets are designed to deliver performance with lots of files in the same directory, regular filesystems aren’t.

So, as @kapitainsky mentioned, always use kopia --sync-to when possible.