When first setting up obsidian when syncthing was v1 I had a few too many conflicts. So thought of writing this up to record it. Tho it has spend many months in the prison of my obsidian notes without ever getting published. So I have rechecked everything as I needed to setup something for someone so here it is finally.
Since last time I tried Syncthing became V2 and it seems like I don’t have as many conflicts happening when editing on multiple devices. Now there’s still some ways we have to have a proper hygiene not to cause conflicts but it is definitely not as severe as it used to be.
My recommendation is to use the star formation for sync. The laptop and phone only connect to the server, so every edit travels device -> server -> other device. That just simplifies onboarding of new devices as well as the conflict handling.
Setup#
1. Install#
| Device | App | Download |
|---|---|---|
| Server, laptop (Linux, Windows or macOS) | Syncthing 2.x | syncthing.net/downloads |
| Phone (Android) | Syncthing-Fork | F-Droid · Google Play · GitHub |
Use the same major version (2.x)
2. Connect the devices#
- Server: add the laptop and the phone.
- Laptop, phone: add only the server.
3. Share the vault with ignore patterns#
The patterns must be in place before the folder starts syncing. Use this list on all three devices:
.obsidian/workspace*
*.tmp
*~
@eaDir
(?d).DS_Store
(?d).Spotlight-V100
(?d).Trashes
(?d)desktop.ini
(?d)Thumbs.dbThis keeps window layout separate on each device while syncing plugins and settings.
4. Apply the settings#
See Settings.
5. Wait for “Up to Date”#
Wait until all three devices show “Up to Date” before opening the vault in Obsidian on the phone.
Settings#
- Laptop and server: open the web GUI, click the folder, then Edit. Max Conflicts and the watch delay are under Actions -> Advanced -> Folders -> vault instead.
- Phone: tap the folder in Syncthing-Fork. For anything marked “Web GUI”, open the app menu -> Web GUI.
| Setting | Laptop / server location | Phone location | Server | Laptop | Phone |
|---|---|---|---|---|---|
| Folder Type | Edit -> Advanced | Folder -> Folder Type | Send & Receive | Send & Receive | Send & Receive |
| Watch for Changes | Edit -> Advanced | Folder -> Watch for changes | On | On | On |
| Watch delay | Advanced -> Fs Watcher Delay S | Web GUI | 10 | 10 | 10 |
| Full Rescan Interval | Edit -> Advanced | Web GUI | 3600 | 3600 | 3600 |
| Ignore Permissions | Edit -> Advanced | Set automatically | Off | Off | On (auto) |
| Max Conflicts | Advanced -> Max Conflicts | Web GUI | 10 | 10 | 10 |
| File Versioning | Edit -> File Versioning | Folder -> File Versioning | Staggered | None or Trash Can | None |
| Ignore Patterns | Edit -> Ignore Patterns | Folder -> Ignore Patterns | List from step 3 | Same | Same |
All of the values above are the defaults except versioning and ignore patterns.
Phone only (Syncthing-Fork settings):
- Battery Optimization: exempt the app, or Android stops syncing in the background.
- Run Conditions: turn on Run on mobile data if you edit away from Wi-Fi.
With 0, Syncthing deletes the losing edit instead of keeping a conflict copy, and versioning doesn’t catch it. That’s what I used to do to avoid conflict. I never really had any issues with it, to be honest. But just in case, you should be aware, you could lose your data.
Daily habits#
- Before editing on the phone: open Syncthing-Fork and wait for “Up to Date”. The phone causes most conflicts.
- After editing on the phone: stay connected 10 to 20 seconds before switching to the laptop.
- Don’t type in the same note on two devices at once.
- Daily notes: create today’s note on one device only.
- Auto-writing plugins (timestamps, formatters, recent-file logs): enable them on one device only.
- Use one sync tool per vault.
- Keep device clocks on automatic time.
Fixing a conflict file#
- Search the vault for
sync-conflict. - Compare it with the original. The File Diff plugin’s Find sync conflicts and merge command steps through each one.
- Keep what you want, then delete the conflict file. Deleting it on one device deletes it everywhere.
I’m sure there’s going to be some other optimizations that could be done. If I find something useful or my workload changes, I will change this post to reflect that.

