Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.2 KB

File metadata and controls

44 lines (34 loc) · 1.2 KB

Destination: Backblaze B2

Uploads backups to a Backblaze B2 bucket using the native b2sdk library.

Module: backups.destinations.b2

Example

{
  "id": "b2-backup",
  "type": "b2",
  "bucket": "my-backup-bucket",
  "credentials": {
    "application_key_id": "YOUR_APPLICATION_KEY_ID",
    "application_key": "YOUR_APPLICATION_KEY"
  },
  "retention_copies": 5,
  "retention_days": 30
}

Setup

  1. Log in to the Backblaze console and create a bucket.
  2. Go to App Keys and create an application key with read/write access to the bucket.
  3. Use the keyID as application_key_id and the applicationKey as application_key.

Parameters

Key Required Purpose
id Yes Unique identifier for this destination.
bucket Yes B2 bucket name.
credentials.application_key_id Yes B2 application key ID.
credentials.application_key Yes B2 application key.
retention_copies No Number of most recent backups to keep.
retention_days No Delete backups older than this many days.

Backup path format

b2://{bucket}/{source_id}/{timestamp}/{filename}