by sun xiao
Content-defined-chunk differential sync over WebDAV. Only changed blocks are transferred; conflicts are kept as copies.
↓ 35 downloadsUpdated 3d agoMIT
Diff Sync (WebDAV)
Diff Sync (WebDAV) synchronizes an Obsidian vault across desktop devices through a WebDAV server. It splits files into content-defined chunks and transfers only the blocks missing on the receiving side. When both devices edit the same file, the plugin keeps a conflict copy so both versions remain available.
Requirements
- Obsidian 1.13.0 or later on desktop.
- A WebDAV server you can read and write to, such as Nextcloud, ownCloud, Synology, or Nutstore.
- The same WebDAV collection URL, remote subdirectory, and encryption settings on every device that syncs the vault.
Install and connect
- Download
main.js,manifest.json, andstyles.cssfrom the GitHub release. - Put the files in the
plugins/diff-sync-webdav/folder under your vault's Obsidian configuration directory. The default location is.obsidian/plugins/diff-sync-webdav/. - Enable Diff Sync (WebDAV) in Obsidian's Community plugins settings.
- Enter the full WebDAV collection URL, user name, password or app password, and remote subdirectory. Use the connection test to verify that the plugin can read and write to the server.
- Open the sync panel and start a sync. The panel shows progress, transfer counts, conflicts, and errors. The plugin interface is currently in Simplified Chinese.
How sync works
- The first sync to an empty remote uploads the files in scope. Subsequent syncs reuse chunks already present on the receiving side.
- In Advanced, the conflict policy selects which version keeps the original filename. The default uses modification time. The size policy prefers the larger file and uses modification time when sizes match. The other version is kept as a conflict copy.
- The plugin syncs in both directions, including deletions. A mass-deletion guard can stop a sync before applying a large deletion.
- The active Obsidian configuration directory and local history folder are excluded. You can add your own exclusions using glob patterns.
- Optional end-to-end encryption protects remote chunks and the file index. Keep the passphrase available on each device.
- Optional local history saves old versions before a download overwrites a file. These snapshots cover overwritten files, while the WebDAV store represents the current sync state.
Build and test
npm ci
npm run build
npm test
Distributed under the MIT license.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.