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:
- with Plugin: Remotely Save
- with Android App "FolderSync"
- with Syncthing
- with Git
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
- Watch for changes
- Ignore Permissions
- File Versioning
Sync via Cloud
Ignore stuff
Sync .obsidian
?
Yes. But without the workspace
file
Ignore workspace
file:
- Nextcloud ignore file pattern:
.obsidian/workspace
- FolderSync exclude filter: File name equals
workspace
Sync via Git
Advantages in comparison to sync via cloud:
- Version control
- Better merging, less conflicts
- No direct syncing of a file that is currently edited (sync after some minutes)
Tutorials:
- How I Put My Mind Under Version Control
- Syncing your Obsidian vault to Android via an encrypted GitHub repository - @renerocksai
- Handling merges and conflicts in an encrypted GitHub Zettelkasten - @renerocksai
Automatic sync in Windows:
Android Apps:
- mgit (see issue 620)
- GitJournal
→ 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