fix(doc): Correct b2.toml (#1072)

closes #1068 

- s/key_id/application_key_id/
- Remove generic opendal comment
- Add comment for password file

---------

Co-authored-by: Alexander Weiss <alex@weissfam.de>
This commit is contained in:
Tom Hale 2024-02-25 17:34:13 +07:00 committed by GitHub
parent b0c7e860e7
commit a39a14d6c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,14 +1,15 @@
# rustic config file to use opendal storage - in this case b2
# rustic config file to use B2 storage via Apache OpenDAL
[repository]
repository = "opendal:b2" # just specify the opendal service here
password = "mypassword"
password = "<rustic_passwd>"
# or
# password-file = "/home/<username>/etc/secure/rustic_passwd"
# all other options are given here.
# Please refer to https://opendal.apache.org/docs/rust/opendal/services/index.html for the options supported by each service
# B2 specific options
[repository.options]
# Here, we give the required b2 options, see https://opendal.apache.org/docs/rust/opendal/services/struct.B2.html
root = "repo-path" # Set the work directory for backend
key_id = "my_id" # B2 application key keyID
application_key = ".my_key" # B2 application key applicationKey
application_key_id = "my_id" # B2 application key ID
application_key = "my_key" # B2 application key secret
bucket = "bucket_name" # B2 bucket name
bucket_id = "bucket_id" # B2 bucket_id
bucket_id = "bucket_id" # B2 bucket ID
# root = "/" # Set a repository root directory if not using the root directory of the bucket