鸽子衔枝之年

鸽子衔枝之年

Deploy Obsidian Automatic Synchronization using Self-hosted LiveSync

Synchronization Strategies#

  1. Use iCloud Sync

    You can use iCloud Drive on all operating systems except Android and Linux. If you are sure that you will not use Obsidian on Android or Linux, then using iCloud Sync would be an excellent synchronization solution.

  2. Use Official Obsidian Sync

    $10 per month.

  3. Use Self-hosted LiveSync Plugin for Syncing
  4. Use Obsidian-Git Plugin for Syncing
  5. Use Remotely Save Plugin for Syncing

    The author has not updated Remotely Save for a long time, and it has quite a few bugs now, so it is not recommended for use at the moment.

Steps#

  1. Install the Self-hosted LiveSync plugin. In Settings -> Community Plugins -> Community Plugins -> Browse, search for "LiveSync" and find the Self-hosted LiveSync plugin to install and activate it.
    Screenshot 2023-03-29 22.51.53

  2. Set up a CouchDB server. You can set it up in the following ways:

    • Set up CouchDB using Docker.
    • Set up CouchDB for free using fly.io. fly.io offers a certain amount of free credits, thanks to their generosity, so you can set up a CouchDB server at zero cost. However, you will need a credit card or debit card (Depay can also be used for card binding) that supports MasterCard or VISA.

      You can refer to the related tutorial Fly.io for self hosting CouchDB · vrtmrz/obsidian-livesync · Discussion #85 (github.com).

  3. Configure the parameters of the LiveSync plugin. Open Settings -> Community plugins -> Self-hosted LiveSync, and enter the settings of the Self-hosted LiveSync plugin. Click on the 🛰 icon.

    • Enter the URI, Username, Password, and Database name of CouchDB in order. The Database name can be any lowercase word.
      Please pay special attention: You need to ensure that all devices being synced use the exact same database name.
      Screenshot 2023-03-30 19.03.42

    • Scroll down to find Check database configuration and click the Check button, then click all the Fix buttons one by one.

      Screenshot 2023-03-31 20.53.55

    • Find Test Database Connection and click the Test button. If successful, it will display Connected to <database_name> in the upper right corner. <database_name> is the database name you set yourself.

      Screenshot 2023-03-31 20.56.01

  4. In the settings page of the Self-hosted LiveSync plugin, click the 🔁 button to enter the Sync settings.

    Activate the LiveSync toggle.

    Screenshot 2023-03-31 20.58.39

  5. If you want to sync installed plugins as well: Click the 🔌 button on the settings page of the Self-hosted LiveSync plugin to enter the Plugins settings.

    Turn on the Enable plugin synchronization toggle, and give a name to your device and Vault in Device and Vault name.

    Screenshot 2023-03-31 21.03.03

  6. Congratulations! Now go ahead and see if your notes will be synced between different devices.

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