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
- 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.
- After configuring all of the settings, click on the “Add the bucket” button to create a fresh bucket.
- 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.
- 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.
- 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“.
- On the Backblaze B2 Integration page, enter a descriptive label, your key ID, application key, bucket name, and region in the corresponding fields.
- If you aren’t sure where to find your region, you can go back to the buckets page and inspect the endpoint URL.
- 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.
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.
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.