Skip to content

Backblaze B2

Mount a Backblaze B2 bucket on Linux with the RaiDrive CLI. Connect with an application key ID and application key.

To get the account, keys or IDs this needs, see Before you begin in the Backblaze B2 guide for the Windows app.

raidrivecli add backblaze --bucket-id <bucket-id> --bucket <bucket>

Both the bucket ID and the bucket name are required. The bucket ID is shown with each bucket on the Buckets page of the Backblaze web console.

If you add storage without the key options, you will be prompted to enter an Application Key Id and Application Key.

$ raidrivecli add backblaze --bucket-id mybucketid --bucket mybucket
Application Key Id: <key-id>
Application Key: ********

Alternatively, an Application Key Id or Application Key can be specified as options.

raidrivecli add backblaze --bucket-id <bucket-id> --bucket <bucket> \
                          --app-key-id <key-id>
raidrivecli add backblaze --bucket-id <bucket-id> --bucket <bucket> \
                          --app-key-id <key-id> \
                          --app-key [key]

Warning

Shell commands are logged in history. If possible, we recommend not specifying the --app-key option with a value.

If a mount directory is not specified, it will be mounted to a directory such as /mnt/backblaze under /mnt. To specify the mount directory, use the --mount-path option.

raidrivecli add backblaze --bucket-id mybucketid --bucket mybucket \
                          --mount-path /myservices/backblaze

Additional options

--bucket-id <bucket-id>                 bucket id
--bucket <bucket>                       bucket
--app-key-id <key-id>                   application key id
--app-key [key]                         application key

See also