💡 Like BikeGremlin? Support me on Patreon or buy me a coffee
Search...

Backblaze B2 Cloud Storage setup

📢
More from BikeGremlin: YouTube | Forum | HUB
Google Add BikeGremlin as a preferred source on Google

I’ve already mentioned Backblaze in the post about cloud storage options. Here I’ll explain how to setup Backblaze B2 Cloud Storage for storing files (i.e. uploading backups).

First, of course, if you don’t have an account already, go to Backblaze website (affiliate link) and create an account – I won’t explain that part. For backups I use their “B2 Cloud Storage”. Then log into your B2 Cloud Storage account and follow the instructions.


1. Creating a storage container (“Bucket”)

First you should create a storage container, Backblaze calls this a “Bucket”.

When creating it, a bucket can be set to be public. This allows file downloads without an authorization token. If you don’t want to enable this, choose “private”. Uploads, listing files and deleting them always requires an authorization token, no matter whether a bucket is public, or private.

Then you can create a directory structure, upload files from your computer, or whatever you like. I’ll make one example.

In a menu that is open now, enter desired directory name and click “Add Folder”.

Picture 3 clearly shows options for file upload, deleting etc. I don’t think this needs any further explaining.


2. Setup for automated backup uploads

Manually uploading files is far from a convenient option, especially when (regular) backup uploads are considered. In order to automatically access a bucket using an application, access rights and keys are required – which I’ll explain in this chapter.

For this click on the “App Key” in the left hand side menu, then “Add a New Application Key”, to create a key for the newly created bucket.

Now choose options as you like, an example is given in picture 6:

Write down in a safe place and keep (KeePass) what is shown on the screen after clicking on “Create New Key”.


3. Summary – conclusion

In this example we have:

  • Created a bucket named: “backups-and-cat-pictures”.
  • Crated a directory named “Backups” inside that bucket.
  • Made an application key called “backup-key” and gave it full access rights (read and write/delete) to the newly created bucket.
  • Written down (this is not shown in the pictures of course) the key ID (“keyID”) and the key (password) itself (“applicationKey”).

Our bucket is now ready for automated backup uploading.


Last updated:


Originally published:




Please use the BikeGremlin.net forum for any comments or questions.

If you've found any errors or lacking information in the article(s) - please let me know by commenting on the BikeGremlin forum or by sending a message via the forum's contact form.
You can comment anonymously (by registering with any name/nickname), but I think it is good to publicly document all the article additions (and especially corrections) - even if their author chooses to remain anonymous.

Tools and other products that I use (and can recommend)