Backblaze B2 Static Website

  



Cloud

Host a static page on Backblaze and distribute it via Cloudflare and their Workers. clouflare-worker-static-page-backblaze.js. // fetch content from B2: const. Aug 22, 2020 Web content can be hosted via B2. However, a domain name cannot be directly mapped to a B2 bucket. Cloudflare can be used as a potential workaround. Details for creating a vanity url can be found.

Recently, I’ve been thinking more and more about backups for my small (but growing) homelab. The golden rule is to follow the 3-2-1 method for backups:

  • 3 backups
  • 2 different types of media
  • 1 backup offsite

Current setup#

Currently, I keep an encrypted external HDD at home and another at work. Every couple weeks, I perform a backup to both and rotate the drives (this covers a 2-1-1 backup).

Planned setup#

I’d like to add cloud storage for a full 3-2-1 backup. My idea is to centralize all my backups to one location, then send the backups offsite to a cloud storage provider. The setup below is my final goal and will fulfill my 3-2-1 requirement.

Storage providers#

For this, I was looking for a raw storage endpoint with some sort of API or command line interface. I was not interested in a file syncing service (e.g., Google Drive or Dropbox) or a cloud backup solution (e.g., Crashplan or Carbonite). While looking for cloud storage providers, I compared the following:

I ended up choosing Backblaze B2 storage. They seemed to be the cheapest, had the most straight-forward pricing, and were the easiest to setup with the backup program I was using.

Full disclosure, I was already a Backblaze fanboy. I was already subscribed to their great blog where they post yearly stats on their hard drives. But, if that’s not enough, they offer free restores via USB flash drive or external HDD if your data is too big to download. And if you need to upload up to 40TB of data, you can request a Fireball (not free, but still cool).

Backup programs#

While looking for backup programs, I compared the following:

I ended up choosing Duplicity. It seemed to be the most popular program, it supports incremental backups and B2 storage, and supports encryption with GPG.

Website

Sign up and install B2#

Sign up for a B2 account if you don’t have one already. You can download the official B2 command line tool from these instructions, but I’m installing the package from the AUR using pacaur. Note - You can create a bucket from the website if you don’t want to install the B2 command line tool.

Setup a bucket#

Start by authorizing your account (substitute your account ID as needed). You will be prompted for your Application Key, which you can get in the B2 control panel.

Now, create a bucket (make sure it is allPrivate). The bucket name must be globally unique to all of Backblaze, not just your account. You can have up to 100 buckets per account.

Backblaze B2 Static Website Free

Finally, list your available buckets.

Static

I highly recommend you encrypt your backups using GPG. It’s integrated into Duplicity and will protect your files from prying eyes. I won’t be covering it here, but check out my other guide on how to create a GPG key. For this setup, I will be using a separate key for encryption and signing.

Disclaimer - Don’t lose the keys or the passphrases to the keys. For example, don’t backup the GPG keys using Duplicity, then have your hard drive crash, which would require the GPG keys to unlock Duplicity. Store the keys on a separate backup by themselves.

First, install Duplicity.

Duplicity basics#

The basic syntax for Duplicity is below.

To backup directly to a server via SFTP, use a command similar to the one below.

To backup a folder to your B2 bucket, use a command similar to the one below. Substitute your account ID, application key, and bucket name as needed.

Backblaze

Duplicity also handles rotating backups. Here, I’m remove backups older than 3 months.

Duplicity script#

Because Duplicity has so many command line options, it’s easier to setup a script and run it via cron.

Backblaze B2 Static Website Design

Hope this helps!

Static Website List

-Logan

Documentation » Using WinSCP » Guides » Cloud Computing »

With WinSCP you can easily upload and manage files on your Backblaze B2 storage/bucket using S3 protocol.

Ms office 2013 download mac. Before starting you should have WinSCP installed.

Collect information about your B2 bucket and API keys in your Backblaze account:

  • Endpoint: Locate your bucket on your bucket list and find a hostname labeled Endpoint. It has a format like s3.region.backblazeb2.com.
  • If you do not have an Application key yet (not Master application key), go to App Keys page and generate new application key. Note both keyID and applicationKey.
Sample static website

Backblaze B2 Static Website Free

Start WinSCP. Login dialog will appear. On the dialog:

  • Make sure New site node is selected.
  • On the New site node, select Amazon S3 protocol.
  • Enter your bucket endpoint to the Host name box.
  • Enter your keyID to into the Access key ID box and your applicationKey to Secret access key box.
  • Save your site settings using the Save button.
  • Login using the Login button.

Backblaze B2 Synology

  • Guide to uploading files;
  • Guide to automating operations (including upload);
  • Official Backblaze guide for connecting using WinSCP.