I want to mount some B2 buckets on Linux for read/write access. What do people recommend?

s3fs, rclone or GeeseFS seem to be the sensible choices, but please share your hard-won opinions with me.

edit: or goofys?

7 points

What’s your use-case? What do you want to achieve?

Using blob storages as filesystems doesn’t work well and could - with B2’s pricing structure - became excessively expensive. Blob storages are designed for easily writing and reading individual blobs. Filesystems are designed for random access, listing, traversal, etc.

permalink
report
reply
2 points

It’s for storing a few terabytes of fairly static media (for the most part, write-once). The codebases using it don’t natively support object storage (and will be in Docker containers).

It’s on a Hetzner server, and Backblaze (even after the price increase) will be a lot cheaper than normal drives, although their storage box option is probably better value over about two GB.

permalink
report
parent
reply
7 points

But the thing is: B2 is cheap for storage, but retrieval and traversal are very expensive. And if that happens transparently on the filesystem (because you accidentally run grep or the service in question regularly hashes the files or something), you would implicitly download everything stored. And IIRC retrieval costs ten times the storage costs… each time.)

permalink
report
parent
reply
7 points

This is no longer the case. Starting in October egress is free up to 3x the volume stored with them.

permalink
report
parent
reply
5 points

Backblaze recently revised B2 storage, it’s gone up by $1 and they offer free egress equal to I believe 2x or 3x the data you have stored with them. Let me try find a link to this…

https://www.backblaze.com/blog/2023-product-announcement/

permalink
report
parent
reply
2 points

I have a similar use case and whilst I’m not quite there yet I’m intending to go with a storage box

permalink
report
parent
reply
3 points

I plan to switch over later when it makes sense to - the nice thing about Backblaze is that it scales with your storage, whereas with Hetzner you have to jump from 1 TB to 5 TB.

permalink
report
parent
reply
2 points

My use case is different (B2 for offsite data backups) but I went down the path of rclone and it has been working out very well. A lot better than I expected. I read their official docs (installation, usage, the backblaze setup and crypt) to get started. Played at the command line for a few minutes and realize how quick and easy it was. Wrote a script to automate it and off to the races I went!

permalink
report
reply
1 point

I’ve had better experiences with rclone mount vs s3fs, but the experience isn’t great. It’s not a posix filesystem so stuff like file locking won’t work. Which makes it dangerous to run databases (incl SQLite) on top of.

Rclone has options to enable a local cache as well. It helps with performance, but I haven’t tested the performance too much yet.

permalink
report
reply

Selfhosted

!selfhosted@lemmy.world

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Community stats

  • 5K

    Monthly active users

  • 3.6K

    Posts

  • 81K

    Comments