# BackBlaze(b2) integration

Backblaze supports external integration through an HTTP-based REST API.\
**Restriction:** REST API does not support resume on upload and mdtm(File modification time) changes. You can use the **S3 connection endpoint** as a workaround.

#### 1. Access through B2 REST API

Create App keys on [https://www.backblaze.com/](https://www.backblaze.com/)\
![B2 app key](BackBlaze-b2-integration/b2_app_key.png)

Use the "KeyId" as username and the application Key as password.

![B2 reg result](BackBlaze-b2-integration/b2_reg_result.png)

The URL pattern looks like this:

```
b2://<<KeyId>>:<<applicationKey>>@api.backblazeb2.com/<<Bucket Name>>/
```

![B2 vfs settings](BackBlaze-b2-integration/b2_vfs_settings.png)

#### 3. Access through S3 API

Open the bucket settings and use the s3 endpoint URL for S3 connection.

![B2 s3 endpoint](BackBlaze-b2-integration/b2_s3_endpoint.png)

Create App keys on [https://www.backblaze.com/](https://www.backblaze.com/) Enable **s3 related** permission.

![B2 application key s3 allow](BackBlaze-b2-integration/b2_application_key_s3_allow.png)

Use the "**KeyId**" as username and the **Application Key** as password.\
The URL pattern looks like this:

```
s3://<<KeyId>>:<<applicationKey>>@s3.us-west-000.backblazeb2.com//<<Bucket Name>>/
```

Required flags:\
**SHA256 enabled on signing (Signing Version 4)** and **Include SHA256 to request headers (Signing Version 4 related)** flags must be checked.

![B2 s3 vfs settings](BackBlaze-b2-integration/b2_s3_vfs_settings.png)

More info about s3 VFS configuration: [S3 integration](S3-integration.md)
