# Backblaze B2 Destination

Duplicati supports storing files with Backblaze B2, which is a large-scale object storage, similar to S3. With B2 you store "objects" (similar to files) in "buckets" which define various properties shared between the objects. If you use a `/` in the object prefix, they can be displayed as virtual folders when listing them.

## User interface

<figure><picture><source srcset="/files/xEmg3BKtUnnbeasI9L5o" media="(prefers-color-scheme: dark)"><img src="/files/MlPtlVxLWDORoMHVkIVG" alt="B2 configuration view"></picture><figcaption></figcaption></figure>

To configure the B2 destination you must supply: bucket, path in bucket, application id, and application key.

If you use the "Test connection" button and the bucket does not exist, Duplicati will offer to create the bucket for you.

## URL format for Commandline

To use the B2 storage destination, use the following URL format:

```
b2://<bucket>/<prefix>
  ?b2-accountid=<account id>
  &b2-applicationkey=<application key>
```

## Create a bucket

You can use the Backblaze UI to create your buckets, but if you need to create buckets with Duplicati, this is also possible. The default is to create private buckets, but you can create public buckets with `--b2-create-bucket-type=allPublic`.

## Performance tuning

You can change the size of file listings to better match pricing and speed through `--b2-page-size`, which is default set to 500, meaning you will have a list request for each 500 objects. Note that setting this higher may cause the number of requests to go down, but each requests may be priced as a more expensive request.

If you prefer downloads from you custom domain name, you can supply this with `--b2-download-url`. This setting does not affect uploads.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplicati.com/backup-destinations/provider-specific-destinations/backblaze-b2-destination.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
