Backblaze Object Storage (S3)
Backblaze B2 Cloud Storage is used in my Homelab to store backups and provide object storage for various applications.
Backblaze B2 CLI
The Backblaze B2 CLI is used to create buckets, upload and download files, and manage your account.
Install the Backblaze B2 CLI on MacOS:
Creating a Backblaze B2 Bucket
Create a new bucket keeping only the last version of files:
BUCKET_NAME="my-bucket"
b2 bucket create "${BUCKET_NAME}" allPrivate
# To keep only the last version of files
b2 bucket create --lifecycle-rule '{"daysFromHidingToDeleting": 1, "daysFromUploadingToHiding": null, "fileNamePrefix": ""}' "${BUCKET_NAME}" allPrivate
Creating Application Keys
Create a new application key with specific permissions for a bucket: