BackBlaze B2
Some notes on using the service which, as of this writing, offers
- The lowest fees: $0.005 GB/Month
- 10GB for free
- Free data egress through CloudFlare’s CDN and Edge Network which is something I’ll explore soon.
- A CLI client
Installation
# On macOS. The command is `b2`
brew install b2-tools
# On Ubuntu. The command is `backblaze-b2`
apt install backblaze-b2
Setup
Log into your profile and set up an “Application Key”. It has two components: an ID and a Value. That’s what you’ll be configuring the b2
command with.
b2 authorize-account {keyID} {applicationKey}
Usage
# List all buckets
b2 list-buckets
# Upload a file
b2 upload-file my-bucket/ riffraff.tgz
# Upload a file and call it something else
b2 upload-file my-bucket/ riffraff.tgz foobar.tgz