Logo
← Back to blog

How to connect a Backblaze B2 bucket to file.rocks

Cover image

Connecting B2 to file.rocks is the same idea as S3 or R2, with a different console. You make a bucket, mint an application key, and paste five fields.

If you already have a bucket and just want cheap storage math, see the cheapest cloud object storage comparison. This post is how you hook B2 into file.rocks so you can browse and upload without living in the Backblaze dashboard.

1. Create your B2 bucket

Open Backblaze, go to B2 Cloud Storage, then Buckets.

Click Create a Bucket. Give it a name you'll recognize later.

Copy the bucket name. You'll paste it into file.rocks in a minute.

B2 bucket list in the Backblaze dashboard

2. Make an application key (not the master key)

B2's master key does not work with the S3-compatible API. You must create an application key.

Go to Application Keys and click Add a New Application Key. Set:

  • Permission / Type of Access: Read and Write
  • Scope: this bucket only
  • Enable Allow List All Bucket Names (required for S3 List Buckets; the checkbox only appears after you pick a specific bucket)

Add Application Key form in Backblaze

Backblaze shows the applicationKey once. Copy keyID and applicationKey. If you lose the secret you make a new key.

One-time Backblaze application key screen, credentials masked

3. Grab the endpoint and region

Your S3-compatible endpoint looks like this:

https://s3.<region>.backblazeb2.com

It is on the bucket card in Buckets. Example from a real bucket: s3.us-east-005.backblazeb2.com, so region is us-east-005. Prefix with https://.

B2 bucket card with S3 endpoint

4. Add the bucket in file.rocks

Go to file.rocks, sign in, and click Add a Bucket.

Choose Bring Your Own, then Backblaze B2. Paste:

  • Bucket name
  • Access Key (keyID)
  • Secret (applicationKey)
  • Endpoint
  • Region

Save. You should see the bucket in the list.

file.rocks Add a Bucket form set to Backblaze B2

If you've connected S3 or R2 before, this form is the same one. The Amazon S3 guide and Cloudflare R2 guide walk those paths. B2 just swaps the endpoint and uses an application key instead of a master key.

5. Upload a file

Open Files and drop something in. If it lands, you're done. file.rocks is the UI now. Backblaze still holds the objects.

file.rocks Files view on the connected B2 bucket

Want to compare storage prices across providers? See Cheapest cloud object storage. Don't redo the key work.

How to connect a Backblaze B2 bucket to file.rocks | file.rocks Blog