Restore from B2 snapshot drive?

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:

  1. 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

  2. Files in local repositories usually use sharding, but that can be disabled, so when connecting to such recovered repository you can use --flat option.

There may be some small details I’m missing, but in principle there’s no reason why such restore can’t be done. Definitely let us know how it goes.

1 Like