Sync Obsidian notes between PC and Android with Syncthing

Add RSS feed to Reader and sync to Readwise.

Syncthing is a browser-based application by default. For easier management, we will install it is a desktop app that’s integrated with the OS. Installing it as a desktop software instead of a web app mainly gives us a tray-icon to access and manage synced folders and view the sync status.

From the Syncthing Downloads page, get and install Synctrayzor for Windows or syncthing-macos for Mac.

In the GUI, click the Add Folder button

Add Obsidian folder to Syncthing

Select the location of the Obsidian notes folder on your computer

Set up the path to the Obsidian folder

In the same dialog box, go to the Advanced tab. Make sure that the Ignore Permissions option is selected. Also uncheck the other options under the Ownership and Extended Attributes sections. Save your settings for this folder.

Set up permissions for Obsidian folder on Syncthing

The folder we want to share is now setup. In this example, I’ve labelled the folder as obsidian-notes.

Next, we need to add the two devices (PC & Android) to each other.

Install the Syncthing-Fork app on Android. Grant the required permissions for file access and battery optimization. The battery permission is required to make sure that sync can happen in the background without having to reopen the app to sync.

On your PC, go to the Actions menu (top-right) and click Show ID. This will show your PC’s Syncthing ID. On the Android app, go to the Devices tab and tap the Add Device icon. You’ll see an option to scan the QR code of your PC and add the device.

You now need to add your Android device’s ID to your PC. Get the device ID on the Android app from the hamburger menu > Show Device ID.

Get the device ID on Syncthing for Android

On your PC’s Syncthing GUI, click the Add Remote Device button. Enter your Android device’s ID.

Add Android device to Syncthing

Both the devices are now added to each other. We can now share the notes folder from the PC to Android.

On your Android, create an empty folder that will act as the sync folder for your notes.

On the PC’s Syncthing GUI, click on the obsidian-notes folder and click the Edit button. In the pop-up, go to the Sharing tab. You’ll see your Android device listed here. Select the device and Save.

Share to selected Android device

When you Save, you should see a notification on your Android that your PC wants to share the folder with you

Syncthing on Android – Folder share notification

Tap the notification and set up the folder-sync. You will need to select the empty folder that you created on Android to “receive” the notes. In case you do not receive a notification, from the hamburger menu in the app, go to the Web GUI and you should see a prompt about the share. Save your folder’s settings and your sync is setup.

Once it’s setup, the initial sync shouldn’t take more than a couple of minutes unless you have a lot of images. You can check the sync status in the Syncthing Android app.

Once the sync is done, go to the Obsidian app on Android and open the synced folder as a vault. You should see all your notes synced to your Android device.

Any edits made on the Obsidian Android app will also be synced to the desktop. Additionally, even though Obsidian has its own File Recovery plugin, you could look into setting up file versioning on Syncthing as an “extra backup”.

Common issues and their fixes

  • When you first setup a new folder on Android, the Syncthing app’s status might say that it’s not 100% synced even though the folder’ status shows ‘Up to Date’. From the app’s menu, tap Restart and the issue will be fixed.
  • Occasionally, Syncthing might say that there are some sync conflicts in the notes. When this happens, Syncthing will automatically create a copy of the conflicted note in the same folder. You can then use any text editor or Notepad++ or VSCode to compare the files and merge/fix your changes. The conflict usually happens if the Obsidian app is open on both Android and desktop at the same time. To avoid this issue, simply close the app on one device before opening it another.

Comments

9 responses to “Sync Obsidian notes between PC and Android with Syncthing”

  1. […] but supports end-to-end encryption in their $96/year cloud sync product. It also looks plausible to sync yourself via SyncThing, but you won’t have the fancy extra layer of conflict resolution that Joplin sync provides. […]

  2. […] installed it on Android too and synced following these notes. Seems to work so […]

  3. Jose Luis Cuadros avatar
    Jose Luis Cuadros

    thanks a lot!! I did it and works great… but…
    my problem is that each time I start obsidian in android it takes a lot of time indexing the vault. It says that that operation will only be done once but it do it everytime I open obsidian

    1. Veesar avatar

      I have not encountered this issue. But you could check if your files are getting deleted after syncing for some reason. If your files are being deleted on one device, then Sycnthing will sync the deleted files from your other device(s) each time. And Obsidian will think it’s a bunch of new files and will re-index the vault each time you open it.

  4. autopro avatar

    Thanks a lot !!!

  5. David avatar
    David

    I’m having this exact problem:

    “When you first setup a new folder on Android, the Syncthing app’s status might say that it’s not 100% synced even though the folder’ status shows ‘Up to Date’. From the app’s menu, tap Restart and the issue will be fixed.”

    However, restarting does nothing. My Obsidian vault is 99% synced and has only 23 remaining files, that simply Do. Not. Want. To. Sync.

    I tried everything – restarting, changing networks, even deleting the entire vault and reuploading it, also reinstalling syncthing.

    These 23 files always remain unsynced. And they aren’t any special fiels just 10 markdown files and 13 images. No special precessions, nothing.

    1. Raul avatar
      Raul

      Have you tried just renaming the files to something quite easy, just to test?
      Cause all the issues I had at the beginning were just about that.
      Another thing that might come to mind is ensuring the filename and path are not too large.
      Hope you find a solution to your issue soon!

  6. dave avatar
    dave

    Thanks for this guide – very useful.
    I’m confused now because somehow my files have been auto-organised into folders for each year and month and this is breaking the links within my Obsidian notes!
    I’m not sure which app is doing this **really useful** organising!
    My setup is a laptop with my Obsidian folder backed up to NextCloud and the same folder sync’d using Syncthing-fork to my Android phone. I also have a NextCloud app on my Android phone. But which one is auto-organising my files?! I need it to stop 🙂

    1. Veesar avatar

      This is probably not being done by the syncing apps. Is this only your journal notes or all notes? If it’s the journal you could check if you’ve setup any subfolder structure for it – see Automatic subfolders in Daily Notes

Leave a Reply

Your email address will not be published. Required fields are marked *