Obsidian - Sync

My Current Setup

General

Official Docs:
https://help.obsidian.md/Getting+started/Sync+your+notes+across+devices

Overview of different syncing options in the forum:
https://forum.obsidian.md/t/meta-post-syncing-between-devices/20983/30

Options:

Sync via Syncthing

How to Sync your Obsidian Vault for Free! - Howchoo

Ignoring files via .stignore

See also Syncthing#Ignoring Files

// .stignore
//
#include .stignore-shared
// .stignore-shared
//
// Temporary Files
(?d)*~

// Windows
(?d)$RECYCLE.BIN
(?d)desktop.ini
(?d)Thumbs.db

// Obsidian
.obsidian/workspace*
.obsidian/cache

Syncthing Configuration

Sync via Cloud

Ignore stuff

Sync .obsidian?
Yes. But without the workspace file

Ignore workspace file:

Sync via Git

Advantages in comparison to sync via cloud:

Tutorials:

Automatic sync in Windows:

Android Apps:

→ I don't use these apps for syncing. Instead I use Termux and a script (see below).

iOS:

gitignore

My .gitignore file:

.obsidian.*/workspace.json
.obsidian.*/cache
.obsidian.*/plugins/obsidian-dictionary-plugin/cache.json
.obsidian.*/plugins/obsidian-full-calendar/data.json
.obsidian.*/plugins/obsidian-hypothesis-plugin/data.json
.trash

[Dd]esktop.ini
Thumbs.db

*~

Note: I'm using two config folders: .obsidian.desktop and .obsidian.mobile

Sync on Android with Termux

GitHub - davidkopp/termux-scripts

How to Use Obsidian Git Sync on Android