vrtmrz / obsidian-livesync

MIT License
5.13k stars 167 forks source link

Self-hosted LiveSync

Japanese docs - Chinese docs.

Self-hosted LiveSync is a community-implemented synchronization plugin, available on every obsidian-compatible platform and using CouchDB or Object Storage (e.g., MinIO, S3, R2, etc.) as the server.

obsidian_live_sync_demo

Note: This plugin cannot synchronise with the official "Obsidian Sync".

Features

This plug-in might be useful for researchers, engineers, and developers with a need to keep their notes fully self-hosted for security reasons. Or just anyone who would like the peace of mind of knowing that their notes are fully private.

[!IMPORTANT]

  • Before installing or upgrading this plug-in, please back your vault up.
  • Do not enable this plugin with another synchronization solution at the same time (including iCloud and Obsidian Sync).
  • This is a synchronization plugin. Not a backup solution. Do not rely on this for backup.

How to use

3-minute setup - CouchDB on fly.io

Recommended for beginners

LiveSync Setup onto Fly.io SpeedRun 2024 using Google Colab

  1. Setup CouchDB on fly.io
  2. Configure plug-in in Quick Setup

Manually Setup

  1. Setup the server
    1. Setup CouchDB on fly.io
    2. Setup your CouchDB
  2. Configure plug-in in Quick Setup

[!TIP] Now, fly.io has become not free. Fortunately, even though there are some issues, we are still able to use IBM Cloudant. Here is Setup IBM Cloudant. It will be updated soon!

Information in StatusBar

Synchronization status is shown in the status bar with the following icons.

To prevent file and database corruption, please wait to stop Obsidian until all progress indicators have disappeared as possible (The plugin will also try to resume, though). Especially in case of if you have deleted or renamed files.

Tips and Troubleshooting

If you are having problems getting the plugin working see: Tips and Troubleshooting

License

Licensed under the MIT License.