Unable to sync-to s3 (b2) ("does not have a format blob"/"contains incompatible data")

Hi,

I have a local file system repo that I would like to sync to b2.

I do the following command:

sudo kopia repository sync-to s3 --config-file /path/to/my/repository.config --bucket <bucket-name> --endpoint s3.us-west-002.backblazeb2.com --access-key $AWS_ACCESS_KEY_ID --secret-access-key $AWS_SECRET_ACCESS_KEY --delete --must-exist

And get the following error:

ERROR destination repository does not have a format blob

So after a quick google, seems I need to create the repo in B2 first… so I did that successfully with the same repo password as my filesystem one. I run the above command again, I get a new error:

ERROR destination repository contains incompatible data

What am I doing wrong?!

Thank you!

Please try again with an empty bucket and without the --must-exist parameter.

That worked, thank you very much! :slight_smile: