This commit is contained in:
fyears 2024-01-10 01:19:57 +08:00
parent 81eb45d32c
commit afc5670313
2 changed files with 34 additions and 21 deletions

View File

@ -17,7 +17,7 @@ This is yet another unofficial sync plugin for Obsidian. If you like it or find
## Features ## Features
- Supports: - Supports:
- Amazon S3 or S3-compatible - Amazon S3 or S3-compatible (Cloudflare R2 / BackBlaze B2 / MinIO / ...)
- Dropbox - Dropbox
- OneDrive for personal - OneDrive for personal
- Webdav - Webdav
@ -63,6 +63,7 @@ Additionally, the plugin author may occasionally visit Obsidian official forum a
- Tutorials / Examples: - Tutorials / Examples:
- [Cloudflare R2](./docs/remote_services/s3_cloudflare_r2/README.md) - [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) - [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. - 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). - If you are using AWS S3, create [policy and user](./docs/remote_services/s3_general/s3_user_policy.md).

View File

@ -6,22 +6,34 @@ https://www.backblaze.com/cloud-storage
## Steps ## 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. 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:
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-1-bucket.png)
![](./s3_backblaze_b2-2-create_bucket.png) ![](./s3_backblaze_b2-2-create_bucket.png)
4. Copy `Endpoint`, eg. `s3.us-east-005.backblazeb2.com` — it'll be used later. 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) ![](./s3_backblaze_b2-3-copy.png)
6. Go to **Application Keys**: 6. Go to **Application Keys**:
![](./s3_backblaze_b2-4-app_keys.png) ![](./s3_backblaze_b2-4-app_keys.png)
8. **Add a new key**: 7. **Add a new key**:
![](./s3_backblaze_b2-5-add_new_app_keys.png) ![](./s3_backblaze_b2-5-add_new_app_keys.png)
![](./s3_backblaze_b2-6-app_keys_copy.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: 8. Save `keyID` and `applicationKey` — they will be used later.
9. Go to Remotely Save settings in Obsidian and:
- Choose `S3 or compatibile` in **Remote Service**: - Choose `S3 or compatibile` in **Remote Service**:
- Copy `Endpoint` from Backblaze (see 3. above) to `Endpoint` in Remotely Save - 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 - From `endpoint` take `region` (eg. `us-east-005`) and paste it in `endpoint` in Remotely Save
@ -30,12 +42,12 @@ https://www.backblaze.com/cloud-storage
- Copy `bucketname` (see 4. above) to `Bucket Name` in Remotely Save - Copy `bucketname` (see 4. above) to `Bucket Name` in Remotely Save
![](./s3_backblaze_b2-7-copy_paste.png) ![](./s3_backblaze_b2-7-copy_paste.png)
11. **Enable CORS**: 10. **Enable Bypass CORS**:
![](./s3_backblaze_b2-8-cors.png) ![](./s3_backblaze_b2-8-cors.png)
12. Click **Check** in _Check Connectivity_ to see if you can connect to B2 bucket: 11. Click **Check** in _Check Connectivity_ to see if you can connect to B2 bucket:
![](./s3_backblaze_b2-9-check_connectionpng.png) ![](./s3_backblaze_b2-9-check_connectionpng.png)
13. Sync! 12. Sync!
![](./s3_backblaze_b2-10-sync.png) ![](./s3_backblaze_b2-10-sync.png)