3

We have a Backblaze B2 business account, and from my understanding it should be possible to upload files using SFTP. Or alternatively FTPS or SCP would also be fine (I just want to be able to upload/backup files from a scripted process).

However I haven't been able to find the correct settings, such as which hostname to use or how/where to setup the appropriate credentials.

I understood this requires creating a 'bucket' in our Backblaze B2 account, but I don't know how to go from there.

I have a bucket, which includes a bucketid and endpoint (hostname), and a KeyID and Master Application Key. And of course our main Backblaze login details. Is it possible to do automated uploads using SFTP with these details, or do I need anything else?

Rog
  • 113

2 Answers2

1

Backblaze B2 Cloud Storage is totally compatible with the Amazon S3 API.

The Backblaze Help article Can WinSCP with B2? recommends the following for using the free tool WinSCP.

WinSCP can be configured with B2 Cloud Storage by following the steps below.

  1. Start WinSCP and you are automatically taken to the connection manager page.

  2. Click on New Site and then under File Protocol, select Amazon S3. Enter the S3 Endpoint URL, Key ID, and Application Key (App Keys) into the appropriate fields.

enter image description here

harrymc
  • 498,455
1

If you're writing a bash script, you could use the B2 command-line tool. For example:

export B2_APPLICATION_KEY_ID=<Your App Key ID>
export B2_APPLICATION_KEY=<Your App Key>

b2 upload-file <Your-Bucket-Name> </path/to/file> <filenameInB2>

metadaddy
  • 179