Bug: My custom configuration folder is not synchronized to all my devices, even though it’s synced to ‘Sync’.
How I tested:
- I already have my vault synced between my windows and android devices, with all features enabled
- I created a new configuration folder (
.obsidian-android
) on my mobile and changed some settings - I checked on my mobile that the files are synced, in the Sync settings menu, and it is
Expectation:
The folder .obsidian-android
appears on my laptop.
Actual:
The folder .obsidian-android
is missing from my laptop.
Background:
I am using my vault differently between my phone and my laptops. I have different plugins, different plugin settings, different appearances, etc.
My usage is so different that I thought having 2 separate configurations would make sense — one for laptops (.obsidian
) and another for my mobile (.obsidian-android
).
This was easily achieved by following the help at Configuration folder - Obsidian Help.
What I wanted was to be able to backup both my configurations via the Git plugin which i run from my laptops. This is impossible right now as the android configuration folder is not synced to my desktop.
I tried to figure this out on my own so i looked over multiple links. Here are my findings, and why I believe this is a bug:
-
Configuration folder - Obsidian Help - nothing relevant
-
Set up Obsidian Sync - Obsidian Help - nothing relevant
-
Sync settings and selective syncing - Hidden folders (folders starting with a dot) are not synced - Obsidian Help
Has a mention about this (emphasis mine):Hidden folders (folders starting with a dot) are not synced
Folders that begin with a
.
(e.g.,.hidden
) are treated as hidden folders and are not synced. ==The only exception is the Configuration folder==, typically named.obsidian
.
Common examples of hidden folders that are not synced include.vscode
,.git
, and.idea
. -
Frequently asked questions - What type of data is synced? - Obsidian Help
By default your Obsidian notes, images, and your Configuration folder are synced.
Forum links:
- Use Obsidian Sync and .obsidian-mobile folder - Help - Obsidian Forum - it looks to me like someone else had my expectation, but was instructed to just disable most toggles in sync, instead of having separate configurations
- Possible to have different theme/font settings for macOS and iOS? - user was instructed to use different configuration folders, nothing mentioned about my issue
- Copy Obsidian Settings to a Separate Configuration for Mobile - user has same issue as i have
- Global Settings / Same settings, themes, and plugins across multiple vaults - little relation, many comments, links to some mildly interesting topics
- Sync plugins/themes between iOS and Android and Mac and Windows - user wants to sync between multiple mobile and desktop OS, is instructed to use configuration folders
- How can I determine different font values on different devices? - user was instructed to use different configuration folders, nothing mentioned about my issue
- Different themes for different devices - user given both options: different config, or don’t sync appearance
A hunch about the problem and solution
I believe the reason for this not-syncing to my laptops is due to the mention in the help website:
Folders that begin with a
.
(e.g.,.obsidian-android
) are treated as hidden folders and are not synced.
This leads me to believe obsidian has the following rules:
- obsidian by default does not sync any
.folder
, eitherdevice → server
orserver → device
- obsidian has a hardcoded rule to sync everywhere the
.obsidian
folder - obsidian has a hardcoded rule to sync only in upload direction the
.configuration folder
Combining rules 1-3 gets me to my current situation: a custom configuration folder is synced to Sync, but is not synced to my other devices. Correct from the perspective of obsidian rules, incorrect from my perspective (the rule of least astonishment?).
Maybe a solution to this bug would be for obsidian to do things transparently:
- automatically add all
.folders
to sync ignore (a list which the user can already see and modify), and sync that list between all devices, outside of vault - allow the user to remove any
.folder
from sync ignore, such that the folder is either uploaded OR downloaded - set up sync to always remove from sync ignore the current
.configuration folder
- remove the hardcoded rules to sync
.configuration folder
(whether.obsidian
which syncs both ways, or.configuration folder
which syncs only one way)
Environment
SYSTEM INFO:
Operating system: android 15 (asus ASUS_AI2302)
Obsidian version: 1.8.9 (195)
API version: v1.8.9
Login status: logged in
Language: en
Catalyst license: none
Live preview: on
Base theme: light
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 2
Plugins enabled: 2
1: Omnisearch v1.26.1
2: Text Extractor v0.5.2
RECOMMENDATIONS:
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.