How to backup Google Workspace data to Backblaze B2 cloud storage.


Backblaze B2 is AWS S3 compatible cloud storage with more affordable pricing. Unlike Wasabi, which has a 90-day minimum storage retention policy, Backblaze does not charge for deleted data, so it costs significantly less than Wasabi in most cases.

Backblaze’s UI is similar to Amazon AWS S3. The first step is to create a bucket and an Access key:

Create a bucket

  1. If you are new to Backblaze, please sign up at Backblaze B2. After creating an account in Backblaze, you can log into the Backblaze console.
  2. On the Buckets page, click Create a Bucket. In the dialog that pops up, enter a unique bucket name (keeping other options as default) and click the Create a Bucket button.
  3. After the bucket has been created, you should change the “Lifecycle Settings” of the bucket. By default, a Backblaze bucket will keep all versions of your files. However, since CubeBackup already has version control, enabling all versions in the Backblaze bucket will result in unnecessary file duplication and cost.

    Click Lifecycle Settings. backblaze B2 bucket

  4. In the Lifecycle Settings dialog, select “Keep only the last version of the file”, then click Update Bucket.

  5. Now, you can copy the bucket name (not the Bucket ID) and paste it to the Bucket textbox on the CubeBackup configuration wizard.

  6. Copy the value of the Endpoint and paste it to the Endpoint textbox on the CubeBackup configuration wizard, with “https://” in the front of the endpoint address.

Generate the Application Key

  1. For the Application Key ID and Application Key, head to the App Keys page.
    Note: The Master Application Key is not S3 Compatible and cannot be used in CubeBackup, so you’ll want to create a new non-master Application key.

  2. On the Application Keys page, click the Add a New Application Key button.

  3. In the Add Application Key dialog, enter the name of the key. The key can either be allowed to access all buckets by selecting “All” in the Allow access to Bucket(s) dropdown list, or it can be limited to only the bucket you have just created.
    Note: If an Application Key is restricted to only one bucket, the Allow List All Bucket Names option must be checked for compatibility with S3 APIs. create backblaze app key

  4. Select “Read and Write” for Type of Access, and keep the File name prefix and Duration text fields empty.

  5. Click Create New Key.

  6. After the new application key has been created, copy the value of keyID and paste it to the Access key ID textbox in the CubeBackup configuraion wizard. Then, copy the value of applicationKey to the Secret access key textbox. Backup Google workspace data to Backblaze B2

  7. If you want your backups to be encrypted, make sure the Encrypt backups option is checked in the CubeBackup configuration wizard. Then click Next.

    After clicking the Next button, we strongly recommend that you make a copy of the key file <installation directory>/db/keys.json and store it in a separate safe location. If the key file is lost, your encrypted backup data will be completely unrecoverable. CubeBackup Inc. does not have access to any key files and will be unable to help you!

Go through the rest of CubeBackup configuration

You can continue CubeBackup’s setup configuration by following the initial configurations.