RunCloud provides numerous options to back up your web applications. One such option is through Backblaze B2 cloud storage. Before starting, make sure you have an active account on Blackblaze.

Setting up the Integration

  1. Log in to your Blackblaze B2 account and go to the Buckets page. Click on the “Create a Bucket” button and enter a unique name for your bucket.

    After this, you can select the encryption and object locking functionality. If you aren’t sure what to select, you can leave these settings to default.
Creating a storage bucket on Blackblaze
  1. After configuring all of the settings, click on the “Add the bucket” button to create a fresh bucket.
  2. Next, we need to generate Blackblaze API keys. Click on the “Application Keys” button under the “Account” menu to go to the API keys tab.
Listing storage buckets on Blackblaze
  1. On the “Application Keys” page, scroll down to the bottom and click on the “Add a New Application Key” button.

    Be sure not to “Generate New Master Application Key”.

    Enter a name for your key and select the bucket you created in the previous step. Choose “Read and Write” as the access level, and then click on the “Create New Key” button.
Creating an Application key on BlackBlaze
  1. On the next screen, you will see your key ID and application key. Do not close this tab – you will only see these keys once.

    In a new tab, log in to your RunCloud account, then go to your account settings menu. Click on the Integrations tab and choose “Blackblaze B2“.
Viewing fresh API keys on Blackblaze dashboard
  1. On the Backblaze B2 Integration page, enter a descriptive label, your key ID, application key, bucket name, and region in the corresponding fields.
  2. If you aren’t sure where to find your region, you can go back to the buckets page and inspect the endpoint URL.
Checking bucket details on Blackblaze dashboard.
In the above example, the bucket name is my-bucket-1324 and the region is eu-central-003.
  1. Click on the “Test Connection” button to verify that everything is working correctly. If you see a green message saying “Connection successful“, you can click on the “Save Integration” button to complete the process.
Adding BlackBlaze API keys on RunCloud dashboard.

Configuring Life-cycle Policy

By default, Blackblaze keeps a copy of the deleted file. This is to avoid accidental deletions. If you have a large amount of data and want to permanently remove the deleted files, you can configure a life cycle policy in the bucket life cycle settings.

Go to your buckets dashboard and click on the “Lifecycle Settings” button next to the bucket that you want to edit.

On the Settings page, you can specify the duration after which Blackblaze should remove the deleted files.

Updating BlackBlaze bucket lifecycle settings.

Click on “Update Bucket” for the changes to take effect. Keep in mind that these changes are not real time – after updating the life-cycle rule, it can take up to 48 hours for the first deletion. This is because Blackblaze applies life-cycle rules once a day.

You have successfully integrated RunCloud with Blackblaze B2 to store backups. You can now go to the Backup menu and create a new backup plan, or edit an existing one to start using Blackblaze B2.

Using Blackblaze for backups on RunCloud