Backblaze B2 Cloud Storage Backup Provider

brianjking shared this idea 10 months ago
Open Discussion

As a server administrator I would like the option to backup remotely to Backblaze B2.

Comments (14)

photo
2

Hi brianjking,

Something I've been doing in the meantime is using the b2-backblaze command line interface. https://www.backblaze.com/b2/docs/quick_command_line.html

A quick script similar to:

  1. #!/bin/bash
  2. b2 authorize_account ACCOUNTID APIKEY
  3. b2 sync --noProgress /backup/ b2://STORAGECONTAINER/

While this isn't perfect using the cPanel Custom Storage provider API, it gets the job done very quickly and effortlessly.

photo
1

Sean,

Thanks, can you share your Backblaze B2 script (obviously redacting your API Key) so that I can test this out?

Are you just scheduling a cronjob for this to run every so often?

Thanks!

photo
1

Sean,

Thanks, can you share your Backblaze B2 script (obviously redacting your API Key) so that I can test this out?

Are you just scheduling a cronjob for this to run every so often?

Thanks!

The issue I'm having is that S3 isn't allowing backups over 5gb to be uploaded. I checked

  1. /usr/local/cpanel/Cpanel/Transport/Files/AmazonS3.pm

which states the file should be chunked, however, it doesn't seem to work.

photo
1

Hey guys! Would you mind taking this conversation to a private email thread? We try to keep the conversation on the request site specific to the implementation of the request at hand. Thanks!

photo
photo
1

Please can someone on here include me in that private thread? I don't know how to find it, or even how to convert this to a private thread. I'm interested in that Backblaze B2 script too please.

photo
1

I meant actually send an email between those two interested parties. Perhaps it would be better on the cPanel forums?

photo
1

@Benny

Oops... I didn't understand. Sorry about that.

photo
1

No worries at all! Once the forum thread gets created I will remove all of this conversation, to keep the comments section here clean and relevant.

photo
photo
2

I would like to have this added, as a very cheap and great backup option for WHM/cPanel. I have accounts over 100GB and this would be beneificial to backup to.

photo
1

I am system administrator and would love to see this feature added. I am already successfully using BE with hashback via CLI, but having it as part of the cpanel/whm environment with a GUI would be of benefit to many people.

photo
1

Oops...

"I am already successfully using B2 with hashback via CLI"

photo
photo
1

Also voting for this feature. Backblaze B2 will definitely be a cost-efficient and convenient remote backup solution for cPanel servers.

photo
1

I agree - while cost shouldn't be the only deciding factor in adding a cloud storage provider, it would be nice to see Backblaze added as one of the options in the WHM Backup screen - along with other poplular cloud storage providers like Google Cloud and Microsoft Azure. Of course my vote is for Backblaze because that's what I would like to use!! But still, the point remains valid.

photo
1

For those of you looking for a temporary solution to this, you can sync the cPanel default /backup folder to B2 using rclone. This is better than B2 cli in my opinion because it supports things like chunking and encryption. https://rclone.org/b2/

Here is a simple script you can run as cron. Make sure it runs after native cPanel backups are complete. We do something like 4:30 AM as a start time replacing "com-domain-sub" with your bucket name.

  1. #!/bin/bash
  2. /usr/sbin/rclone sync /backup b2:com-domain-sub > /var/log/rclone.log 2>&1

Keep in mind that OpenVZ VPS's are susceptible to OOM killer. Although this shouldn't trigger OOM, just be aware that there will be a "spike" of memory use (like +1gb?).