Use case or problem
Using Obsidian CLI you can only sync full vaults currently. Frequenly only a sub-folder of the vault should be shared. For example when a vault has “Home” and “Work” folders, only the “Work” folder should be synced to work machines.
This FR is also present in variations for mobile and desktop app, showing additional need.
Proposed solution
add a sync limiting command with parameter. --only-folder
Recursive sync of folder tree from as root.
eg for a folder “Home” in the vault root, command would be:
ob sync --only-folder ‘Home’
The solution should also work with --continuous command, to maintain sync between the local folder and the vault folder.
Current workaround (optional)
Forked obsidianmd:master to briannewbold:obsidian-headless, added the feature. It’s running perfectly as requested.
Closed PR (pull/23), but code layer not exposed so I couldn’t do a proper code line update PR.
Related feature requests (optional)
Consideration for additional use cases:
Syncing of multiple folders from a defined list
Syncing of complete vault except indicated folder/file(s)