This computer will show you can back up computer or server with Backblaze B2 Cloud Storage from the Command Line n OSX and Ubuntu.
This post is still being written. I have a number of guides on moving hasting away form CPanel, Setting up VM’s on AWS, Vultr or Digital Ocean along with installing and managing WordPress from the command line. Also, I have blogged about how you can add block storage to a Vultr server, backup and restore snapshots , syncing files with rsync along with using GitHub and Bitbucket but what do you do if you need to backup large amounts of data?
Backblaze has a Cloud storage solution that costs as low as $0.005c a GB (a month), The first 10G is free. Backblaze say “From bytes to petabytes Backblaze B2 is the lowest cost high-performance cloud storage in the world. ”
Back Blaze have open sourced internal drive enclosure designs and drive failure stats and it’s time I gave them a try.
Goto https://www.backblaze.com
Create or sign in.
After you login got the dashboard.
Click Backblaze B2 Cloud Storage
Create a Bucket
Name the bucket (long names with a GUID are good).
You can rename the bucket here and change public/private and or upload/download files manually.
The first thing I did was limit the versions of files under the lifecycle settings for the bucket.
Now I created a series of subfolders to store files from different servers (I could have used many buckets but one bucket will do).
I can upload files via the Backblaze bucket GUI if I needed to.
Back Blaze has a command line tool for uploading: https://www.backblaze.com/b2/docs/quick_command_line.html
Install Steps
Backblaze state “The B2 command-line tool is available from the Python Package Index (PyPI) using the standard pip installation tool. Your first step is to make sure that you have either Python 2 (2.6 or later) or Python 3 (3.2 or later) installed.”
I have Python 2.7 installed
Install PIP
I ran into issues updating b2 CLI
I tried installing via the alternative method (with no luck)
I tried running the setup script (with no luck)
Upgrading setup tools also failed
Backing up a Mac via command line with B2
More to come when I can get B2 CLI Installed.
Backing up an Ubuntu machine via command line with B2
More to come when I can get B2 CLI Installed.
Update
My ticket with Backblaze was automatically closed with this note “If the issue is persisting, it may be easiest to map the installation to the user folder, rather than the system level.”
No ideas how but something to research.
Ask a question or the recommend an article
[contact-form-7 id=”30″ title=”Ask a Question”]
Revision History
V1.1 ticket closed
v1.0 Initial post