1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-16 00:00:05 +01:00

Improving documentation for using the B2 backend.

This commit is contained in:
Joe Turgeon 2016-12-11 19:20:43 -06:00
parent 049859d323
commit 38043c3acb
No known key found for this signature in database
GPG key ID: 7B63B97D65DC695F
2 changed files with 25 additions and 2 deletions

View file

@ -501,6 +501,29 @@ Please note that knowledge of your password is required to access
the repository. Losing your password means that your data is irrecoverably lost.
```
# Create a Backblaze B2 repository
Restic can backup data to any Backblaze B2 bucket. You must first setup the
following environment variables with the credentials you obtained when signed
into your B2 account:
```console
$ export B2_ACCOUNT_ID=<MY_ACCOUNT_ID>
$ export B2_ACCOUNT_KEY=<MY_SECRET_ACCOUNT_KEY>
```
You can then easily initialize a repository that uses your Backblaze B2 as a
backend. If the bucket does not exist yet, it will be created:
```console
$ restic -r b2:bucket_name init
enter password for new backend:
enter password again:
created restic backend eefee03bbd at b2:bucket_name
Please note that knowledge of your password is required to access the repository.
Losing your password means that your data is irrecoverably lost.
```
# Removing old snapshots
All backup space is finite, so restic allows removing old snapshots. This can

View file

@ -1,7 +1,7 @@
BackBlaze B2 backend support for restic
Backblaze B2 backend support for restic
=======================================
This package allows using BackBlaze's B2 object storage service as a backend for
This package allows using Backblaze's B2 object storage service as a backend for
restic. It implements kurin's [blazer](https://github.com/kurin/blazer) client
library for integration with the B2 service.