S3FS is a FUSE filesystem that allows you to mount a bucket in S3 compatible storage as a local filesystem.

S3FS can be configured with B2 by following the steps below.

Step 1:


Add your Key ID, Application Key (App Keys) into the /etc/passwd-s3fs file, separated by a colon (:).

sudo vi /etc/passwd-s3fs


The format of your Key ID and Application Key should look like this:



Step 2:

Make sure the passwd-s3fs file has the correct permissions:

sudo chmod 640 /etc/passwd-s3fs


Step 3:

Make a directory that will be your local mount point.  In this example we are creating it in the home directory (~).



sudo mkdir -p ~/s3fs-bucket1



Step 4:

Mount your Backblaze bucket in the local directory that you created, using this command format:


sudo s3fs mybucket /path/to/mountpoint -o passwd_file=/etc/passwd-s3fs -o url=https://s3.your-region.backblazeb2.com



sudo s3fs s3fs-bucket1 ~/s3fs-bucket1 -o passwd_file=/etc/passwd-s3fs -o url=https://s3.us-west-002.backblazeb2.com



The S3 Compatible API for Backblaze B2 Cloud Storage allows 1000’s of integrations to work with B2 natively. If you’re new to the S3 Compatible API, please see our Getting Started Guide. If you have any trouble using S3FS with B2, please let us know by emailing us at b2feedback@backblaze.com.