Connect a Backblaze B2 bucket
Backblaze B2 is pay as you go object storage. We connect through its S3-compatible API with an application key that you limit to one bucket, so the key cannot reach anything else in your Backblaze account.
Before you start
- A Backblaze account with B2 Cloud Storage turned on.
Step by step
- Sign in to Backblaze. Under B2 Cloud Storage, open Buckets and choose Create a Bucket, or use a bucket you already have. Keep it Private.
- On the Buckets page, find the Endpoint of your bucket, for example
s3.us-west-004.backblazeb2.com. The part afters3.and before.backblazeb2.comis the region,us-west-004in this example. - Under B2 Cloud Storage, open Application Keys and choose Add a New Application Key.
- Give the key a name, for example
corehost. In Allow Access to Bucket(s), choose your bucket only, and set the type of access to Read and Write. You can leave the file name prefix and the expiry empty. - Create the key. Backblaze shows the keyID and the applicationKey: copy both now, because the applicationKey is shown only once.
- In the CoreHost control panel, go to Your storage and add a connection. Choose Backblaze B2, fill in the fields as shown below and save.
- We save the connection and test it straight away. The result is one sentence, for example "Connected. 4 folders found. We can write here." If something is wrong, it says what, such as a key that was refused or a bucket that was not found.
- Open the app that should use the storage, go to its Storage section and attach the connection. Pick the folder in your storage, the path in the app (
/mnt/storageunless the app needs another) and Read only if the app only needs to read. The folder appears in the running app within about 15 seconds, without a restart.
What to fill in
In Your storage, add a connection, choose Backblaze B2 and fill in these fields.
- Name
- Any name you like, for example
B2 media - Region
- The part of the bucket Endpoint after
s3., for exampleus-west-004 - Bucket
- The bucket name, exactly as Backblaze shows it
- Folder (optional)
- Leave it empty to use the whole bucket. You pick the folder for each app when you attach it.
- Access key ID
- The keyID of the new application key
- Secret access key (kept encrypted, never shown again)
- The applicationKey of the new application key
- Cache size (optional)
- 2, 5, 10 or 20 GiB. The default suits most apps. Pick a larger size for a media library that plays the same files again.
- Read only (optional)
- Tick it if the key or account can only read, so the test does not try to write
After you save, we never show a secret again: the panel shows only its last four characters. To change one, enter the new value. A secret you leave empty when you edit the connection keeps the stored one.
Good to know
- Use the keyID of the key you just made, not your Backblaze account ID.
- The key needs Read and Write access to the bucket.
- By default B2 keeps old versions of files that are changed or deleted, and Backblaze counts them as stored data. If you do not need them, set the bucket lifecycle settings to Keep only the last version of the file.
- If you set an expiry on the key, the connection stops working when it expires. Make a new key and enter it in the connection.
What your provider charges
Backblaze says egress is free up to three times the average amount of data you store each month, and charged per GB after that. Files your app reads count as egress. Backblaze lists most API calls as free on pay as you go; its pricing page has the details.
Backups
Connected storage is not part of CoreHost backups, which cover the app's own data only. Back up what is in your storage with your provider. Detaching a folder or removing a connection never deletes anything in your storage. How connected storage works.
Using the folder in your app
The folder appears at /mnt/storage unless you chose another path. Point the app at it, or at a folder inside it, for example a music or audiobook library. The overview has tips for media apps and explains the cache and what happens if your storage cannot be reached.
Keep readingOther storage guides
Sources
- Backblaze Docs, Create and manage application keys: one bucket keys, Read and Write access, keyID and applicationKey
- Backblaze Docs, Create and manage buckets: creating a private bucket and finding its Endpoint
- Backblaze Docs, Lifecycle rules: old versions and how they are billed
- Backblaze B2 pricing: egress and API call charges
We checked these steps against the provider's own documentation on 2 December 2026. Consoles change, so if something here is out of date, email support@corehost.io and we will correct it. Backblaze is an independent company. CoreHost is not affiliated with Backblaze, and this page is not endorsed by it.
Put your library to work
Every new account starts with $5 of credit, no card needed. Deploy an app such as Navidrome or Audiobookshelf, then connect your storage from the control panel.