by Stefan Stark
Synchronize your vault bidirectionally with Nextcloud via WebDAV.
↓ 23 downloadsUpdated 2d agoGPL-3.0
VaultDAV
Synchronize Obsidian vaults bidirectionally with Nextcloud via WebDAV.
Installation
Manual Installation
- Download
main.jsandmanifest.jsonfrom the latest GitHub Release. - Create the folder
<vault>/<config-dir>/plugins/vaultdav/(where<config-dir>is your Obsidian configuration folder). - Copy
main.jsandmanifest.jsoninto that folder. - Reload Obsidian and enable VaultDAV under Settings > Community plugins.
Beta Installation (BRAT)
- Install the BRAT community plugin.
- Add
akjir/vaultdavin BRAT settings. - Enable VaultDAV under Settings > Community plugins.
Nextcloud Setup
- Open Nextcloud and go to Settings > Security > Devices & sessions.
- Enter a device name (for example,
Obsidian VaultDAV) and click Create new app password. - Copy the generated App Password.
- Enter your Nextcloud base URL (
https://<domain>) in Server URL, your account name in Username, select or create a secret containing the generated password in App password (stored in Obsidian SecretStorage), and enter the target folder in Remote base directory. VaultDAV resolves requests against:https://<domain>/remote.php/dav/files/<user>/<remote-base-dir>/
Settings
| Setting | Property (VaultDavSettings) | Description |
|---|---|---|
| Server URL | url | Nextcloud base URL or WebDAV endpoint (https://<domain>). |
| Username | username | Nextcloud account username. |
| App password | appPasswordSecret | Secret reference ID in Obsidian SecretStorage for your Nextcloud app password (never persisted in plaintext in data.json). |
| Remote base directory | remoteBaseDir | Target remote folder path inside the Nextcloud user files root. |
| Sync interval | syncInterval | Automatic synchronization interval in minutes (0 to 10080, 0 to disable). |
| Conflict strategy | conflictStrategy | Resolution mode for concurrent edits (keep_both or newest_wins). |
| Chunking threshold | chunkingThresholdMB | File size threshold in MB (1 to 512, default 90) above which uploads use Nextcloud OC-Chunked transfers. |
| Chunk size | chunkSizeMB | Individual chunk size in MB (1 to 512, default 10) for chunked uploads and parallel HTTP Range downloads. |
Commands
| Command ID | Name | Description |
|---|---|---|
vaultdav:sync-now | Synchronize now | Execute a bidirectional synchronization cycle immediately. |
vaultdav:test-connection | Test Nextcloud WebDAV connection | Verify Nextcloud credentials and remote base directory access. |
Sync Behavior
- Transfers files as binary payloads (
ArrayBuffer) over ObsidianrequestUrl, using Nextcloud OC-Chunked uploads (MKCOL/PUT/MOVE) for files exceedingchunkingThresholdMBand parallel HTTPRangedownloads (Uint8Array.set()) for remote files larger than 5 MB. - Displays real-time transfer and chunk progress in the Obsidian status bar during synchronization.
- Tracks local and remote modification times and ETags to detect creations, modifications, and deletions (tombstones).
- Excludes the local sync state file (
<config-dir>/plugins/vaultdav/sync-state.json), plugin configuration (<config-dir>/plugins/vaultdav/data.json),<config-dir>/workspace*.json,.trash/,.git/,.svn/,node_modules/, and OS metadata files (.DS_Store,Thumbs.db,desktop.ini), respecting customVault#configDirnames to prevent sync loops.
Compatibility & Privacy
- Desktop & Mobile: Supports Desktop, Android, and iOS (
isDesktopOnly: false) on Obsidian 1.11.4 or newer with zero runtime dependencies. - iOS TLS requirement: Apple iOS blocks self-signed TLS certificates in Obsidian. Use a valid CA-signed HTTPS certificate (for example, Let's Encrypt) on your Nextcloud server when syncing from iOS.
- Network & privacy: VaultDAV communicates only with the Nextcloud HTTPS server that you configure. It sends no telemetry or requests to third-party servers. Your Nextcloud app password is stored in Obsidian SecretStorage (local to each device), while
<config-dir>/plugins/vaultdav/data.jsonstores only the secret reference ID (appPasswordSecret) and remains excluded from synchronization. Legacy plaintextappPasswordentries indata.jsonare migrated automatically into SecretStorage and removed fromdata.jsonon load.
Development & Build
npm install
npm run typecheck
npm test
npm run build
npm run dev
Acknowledgments
VaultDAV's synchronization algorithm and WebDAV quirk handling are inspired by remotely-save.
License
VaultDAV is licensed under the GNU General Public License v3.0. See LICENSE for full terms.
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.