/// CREATE A BUCKET / BACKBLAZE B2
Create a Backblaze B2 Bucket
Want a cheap second copy or a dedicated backup target? Backblaze B2 is about the lowest dollar-per-GB you'll find, which makes it ideal for backups and cold storage. It speaks the S3-compatible API, so storafleet treats a B2 bucket like any other Fleet. Create the bucket here, then connect and sync to it from storafleet.
Create a Backblaze account
Sign up at backblaze.com/cloud-storage and then sign in to the web console at secure.backblaze.com. A Backblaze B2 account is tied to a single region (for example us-west-004) — every bucket you create lives in that region, which also determines your S3 endpoint below.
Create a B2 bucket
From the web console, follow Backblaze's official bucket guide:
- In the left navigation under B2 Cloud Storage, click Buckets.
- Click Create a Bucket.
- Enter a globally unique bucket name, then set Files in Bucket are to Private — see the Private-vs-Public note below before you pick Public.
- Optionally enable server-side encryption or Object Lock, then click Create a Bucket.
- On the Buckets page, copy the value in the Endpoint field — you'll need it to connect (see Find your S3 endpoint).
Create an application key
storafleet authenticates with a B2 application key, which maps cleanly to S3-style credentials: the keyID is your Access Key ID and the applicationKey is your Secret Access Key. Following Backblaze's application keys guide:
- In the left navigation under B2 Cloud Storage, click Application Keys.
- Click Add a New Application Key and give it a name.
- Under bucket access, select your specific bucket (not "All"), and choose Read and Write so storafleet can sync both ways.
- Click Create New Key and copy both the
keyIDand theapplicationKey.
applicationKey (your secret) is shown only once when you create it. Copy it immediately and store it somewhere safe — you can always find the keyID later, but a lost applicationKey means generating a new key.Find your S3 endpoint
B2's S3-compatible endpoint has the form https://s3.<REGION>.backblazeb2.com and accepts connections only over HTTPS. The Endpoint value shown next to your bucket on the Buckets page is exactly this — for example s3.us-west-004.backblazeb2.com. Your region is the second segment of that hostname (here, us-west-004). See Backblaze's S3-Compatible API reference.
Connect it to storafleet
You now have everything storafleet needs: the bucket name, your S3 endpoint and region, and an application key (keyID + applicationKey). Head to Connect Backblaze B2 to add it as a Fleet using the custom endpoint and access-key flow.
To put B2 to work as your low-cost backup tier, set up a recurring copy from your primary bucket into B2 — walk through it on the Migration & backup sync guide.