Uploads backups to a Backblaze B2 bucket using the native b2sdk library.
Module: backups.destinations.b2
{
"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
}- Log in to the Backblaze console and create a bucket.
- Go to App Keys and create an application key with read/write access to the bucket.
- Use the keyID as
application_key_idand the applicationKey asapplication_key.
| 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. |
b2://{bucket}/{source_id}/{timestamp}/{filename}