Hey folks, I hope this is possible. I used Velero to back up a k8s home lab, which uses kopia under the hood. Unfortunately velero is refusing to connect to remote storage and sync its list of snapshots, so I’m abandoning it. Possibly (hopefully) fortunately, I can get at the underlying kopia repo and have downloaded it locally, so my hope is that I can get at these files somehow. Here’s what I know, what my challenges are, and what I’ve tried.
- Fortunately encryption shouldn’t be an issue since velero uses a hard-coded password for all repos.
- I stored the repo on b2, but I don’t think velero supports b2 natively, so I configured the storage as s3 and used the s3 plugin. Maybe something changed in velero/its kopia integration which is why things are broken now?
In any case, I made a b2 snapshot of the repo, downloaded it, and ran:
core@lab:~$ kopia repo connect filesystem --path ~/kopia/vm
Enter password to open repository:
ERROR error connecting to repository: repository not initialized in the provided storage
I then tried the same with b2 and got the same results, I suspect because the velero s3 plugin used the s3 type instead. So then I tried passing in similar connection parameters to how I use the velero s3 integration:
core@lab:~$ kopia repo connect s3 --access-key "nope" --secret-access-key "nope" --bucket nolan-lab --endpoint "s3.us-west-001.backblazeb2.com"
ERROR can't connect to storage: error retrieving storage config from bucket "nolan-lab": Malformed Access Key Id
Notably, I used the same b2 access key I used when testing against b2, so I’m pretty sure the creds are right. Any idea where this message might be coming from?
Any thoughts on how I can access this repo, how to confirm what storage location it was created with, etc.? If all else fails, I guess I can launch a minio instance and use that to fake an s3 connection, but hopefully there’s another way.
Thanks.