From afc567031391ca9f96b71a1029831871995a9f27 Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Wed, 10 Jan 2024 01:19:57 +0800 Subject: [PATCH] add b2 --- README.md | 3 +- .../remote_services/s3_backblaze_b2/README.md | 52 ++++++++++++------- 2 files changed, 34 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index cc1dae2..fa6211e 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ This is yet another unofficial sync plugin for Obsidian. If you like it or find ## Features - Supports: - - Amazon S3 or S3-compatible + - Amazon S3 or S3-compatible (Cloudflare R2 / BackBlaze B2 / MinIO / ...) - Dropbox - OneDrive for personal - Webdav @@ -63,6 +63,7 @@ Additionally, the plugin author may occasionally visit Obsidian official forum a - Tutorials / Examples: - [Cloudflare R2](./docs/remote_services/s3_cloudflare_r2/README.md) + - [BackBlaze B2](./docs/remote_services/s3_backblaze_b2/README.md) - [MinIO](./docs/remote_services/s3_minio/README.md) - Prepare your S3 (-compatible) service information: [endpoint, region](https://docs.aws.amazon.com/general/latest/gr/s3.html), [access key id, secret access key](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/getting-your-credentials.html), bucket name. The bucket should be empty and solely for syncing a vault. - If you are using AWS S3, create [policy and user](./docs/remote_services/s3_general/s3_user_policy.md). diff --git a/docs/remote_services/s3_backblaze_b2/README.md b/docs/remote_services/s3_backblaze_b2/README.md index ed2b332..3ef1160 100644 --- a/docs/remote_services/s3_backblaze_b2/README.md +++ b/docs/remote_services/s3_backblaze_b2/README.md @@ -6,36 +6,48 @@ https://www.backblaze.com/cloud-storage ## Steps -1. Create a Backblaze account [on this page](https://www.backblaze.com/cloud-storage). Credit card info *is not* required. Backblaze B2 offers 10 GB of free storage. -2. Create a **bucket**, you can leave the default settings: +1. Create a Backblaze account [on this page](https://www.backblaze.com/cloud-storage). Credit card info _is not_ required. Backblaze B2 offers 10 GB of free storage. + +2. Please be aware that, though B2 provides some free quota, **it may still cost you money if the usage of storage or api requests exceed a certain value!!!** Especially pay attention to the api requests!!! + +3. Create a **bucket**, you can leave the default settings, or you can enable the encryption (which is different from what you can set in Remotely Save): + ![](./s3_backblaze_b2-1-bucket.png) ![](./s3_backblaze_b2-2-create_bucket.png) + 4. Copy `Endpoint`, eg. `s3.us-east-005.backblazeb2.com` — it'll be used later. -5. Copy `bucketname` near the 🪣 icon — it'll be used later. + +5. Copy `bucketname` near the 🪣 icon (the "bucket icon") — it'll be used later. + ![](./s3_backblaze_b2-3-copy.png) + 6. Go to **Application Keys**: - ![](./s3_backblaze_b2-4-app_keys.png) + ![](./s3_backblaze_b2-4-app_keys.png) + +7. **Add a new key**: -8. **Add a new key**: ![](./s3_backblaze_b2-5-add_new_app_keys.png) ![](./s3_backblaze_b2-6-app_keys_copy.png) -9. Save `keyID` and `applicationKey` — they will be used later. -10. Go to Remotely Save settings in Obsidian and: - - Choose `S3 or compatibile` in **Remote Service**: - - Copy `Endpoint` from Backblaze (see 3. above) to `Endpoint` in Remotely Save - - From `endpoint` take `region` (eg. `us-east-005`) and paste it in `endpoint` in Remotely Save - - Copy `keyID` (see 7. above) to `Access Key ID` in Remotely Save - - Copy `applicationKey` (see 7. above) to `Secret Access Key` in Remotely Save - - Copy `bucketname` (see 4. above) to `Bucket Name` in Remotely Save - ![](./s3_backblaze_b2-7-copy_paste.png) -11. **Enable CORS**: - ![](./s3_backblaze_b2-8-cors.png) +8. Save `keyID` and `applicationKey` — they will be used later. -12. Click **Check** in _Check Connectivity_ to see if you can connect to B2 bucket: - ![](./s3_backblaze_b2-9-check_connectionpng.png) +9. Go to Remotely Save settings in Obsidian and: -13. Sync! + - Choose `S3 or compatibile` in **Remote Service**: + - Copy `Endpoint` from Backblaze (see 3. above) to `Endpoint` in Remotely Save + - From `endpoint` take `region` (eg. `us-east-005`) and paste it in `endpoint` in Remotely Save + - Copy `keyID` (see 7. above) to `Access Key ID` in Remotely Save + - Copy `applicationKey` (see 7. above) to `Secret Access Key` in Remotely Save + - Copy `bucketname` (see 4. above) to `Bucket Name` in Remotely Save + ![](./s3_backblaze_b2-7-copy_paste.png) - ![](./s3_backblaze_b2-10-sync.png) +10. **Enable Bypass CORS**: + ![](./s3_backblaze_b2-8-cors.png) + +11. Click **Check** in _Check Connectivity_ to see if you can connect to B2 bucket: + ![](./s3_backblaze_b2-9-check_connectionpng.png) + +12. Sync! + + ![](./s3_backblaze_b2-10-sync.png)