HOWTO: Setting Up BackBlaze B3 for backups

These are some notes I used to get BackBlaze B3 setup as a backup store provider. This was done in Virtualmin 7.7 Pro under Ubuntu 22.04 LTS.

First you need the b3 command line tool. I’ve chosen to build mine from scratch and use the system versions of Python. This seems the most maintainable in the long run.

  1. Get the required packages
sudo  apt-get install python3-pip python3-pip-whl git
  1. Get the b3 source code, and use the latest version. First go to Tags · Backblaze/B2_Command_Line_Tool · GitHub and see what the latest tag is. For me it was v3.10.0
git clone https://github.com/Backblaze/B2_Command_Line_Tool.git
cd B2_Command_Line_Tool
git checkout v3.10.0
  1. Build the tool
sudo -i  # yeah this is unsafe
cd  B2_Command_Line_Tool
python3 setup.py build
# If this looks good then do the next step
python3 setup.py install

If that all went well, you should have the tool installed to /usr/local/bin/b2

  1. Create an app key in B3 at https://secure.backblaze.com/app_keys.htm and enter the information you create in Virtualmin under Virtualmin → Backup and Restore → Cloud Storage Providers → Backblaze.
1 Like

Question: What’s the correct setup for “incrementals” when I want a 2 week cadence?

image

This is what I came up with, but I was wondering if there is any other guidance?

Thanks!

The above is WRONG! With * in the hour field the job was running every hour! eek.

Here’s my current attempt:

This site was very useful btw : Crontab.guru - The cron schedule expression editor*

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.