banner
Lainbo

Lainbo's Blog

github

Obsidian uses Cloudflare R2 (S3 compatible) for synchronization across multiple devices.

Obsidian, as a powerful note-taking software, is favored by knowledge workers. However, its official Sync service is quite expensive, with an annual fee starting at $48. For users with a limited budget, this can be a significant expense.

There is a more economical alternative: combining Cloudflare's R2 storage service with Obsidian's Remotely Save plugin. R2 is an S3-compatible object storage service, and its free tier is sufficient for personal use. R2 offers 10GB of storage space, along with 1 million Class A operations and 10 million Class B operations per month, with data egress completely free. This means that for most Obsidian users, syncing notes may not incur any costs at all.

Pricing#

Official Obsidian Pricing#

FeatureSync StandardSync Premium
Price$4/month, billed annually$8/month, billed annually
Number of Repositories110
Total Storage Space1GB10GB
Maximum File Size5MB200MB
History1 month12 months
Number of DevicesUnlimitedUnlimited
Shared RepositoriesSupportedSupported

Cloudflare Free Tier Pricing#

FeatureFree
Total Storage Space10 GB / month
Class A Operations1 million / month
Class B Operations10 million / month

For Obsidian users:
Class A Operations: File uploads and data modifications during the sync process
Class B Operations: Downloading and reading file content

Prerequisites for Using Cloudflare#

  1. Have a Cloudflare account
  2. This account must be linked to a payment card (Visa, Master, AMEX tested within China are all acceptable; it's unclear about UnionPay debit cards, but you can try. If UnionPay debit cards do not work, you can link a domestic debit card through Cloudflare → link PayPal → link domestic debit card)

Applying for Cloudflare's R2#

  1. Open https://dash.cloudflare.com/?to=/:account/r2/new
  2. The page will ask you to set a name for the bucket; I entered obsidian-sync (remember this for later), you can enter your desired name
  3. Keep the defaults for "Location" and "Default Storage Class"
  4. Click to create the bucket

Obtaining the Bucket Service Address#

  1. Open the details page of the bucket you just created, remember to replace the bucket name in the middle with the name you just set https://dash.cloudflare.com/?to=/:account/r2/default/buckets/replace_with_your_bucket_name/settings
  2. On this page, find "Bucket Details" - "S3 API", and you will find a link in the format https://xxxxxxxxxxxxx.r2.cloudflarestorage.com/your_bucket_name
  3. Copy this link, then remove the last name part, i.e., https://xxxxxxxxxxxxx.r2.cloudflarestorage.com is the service address we need (remember this for later)

Creating a Cloudflare API Token#

  1. Open https://dash.cloudflare.com/?to=/:account/r2/api-tokens/create
  2. This page will ask you to enter a name; you can choose any name that you can recognize
  3. For permissions, select "Administrator Read and Write," keep the rest unchanged
  4. Click to create the API token
  5. Copy the "Access Key ID" and "Secret Access Key" (remember this for later)

Using in Obsidian#

  1. Download, install, and enable the Remotely Save plugin

    https://i0.hdslb.com/bfs/article/4a8ab23b66c5ed653633b3608dadf56430109107.png

  2. Fill in as shown in the image, keeping defaults for anything not mentioned

image

  1. Sync between PC and mobile: The mobile side needs to install and start the Remotely Save plugin first, the names of the Vaults must be exactly the same as on the PC. Paste the link generated on the PC into the phone and click confirm.

    https://i0.hdslb.com/bfs/article/2cb5340cd5e4d0b46ce21050e22e4a4030109107.png

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.