VaultDAV

approvedunreviewed

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

  1. Download main.js and manifest.json from the latest GitHub Release.
  2. Create the folder <vault>/<config-dir>/plugins/vaultdav/ (where <config-dir> is your Obsidian configuration folder).
  3. Copy main.js and manifest.json into that folder.
  4. Reload Obsidian and enable VaultDAV under Settings > Community plugins.

Beta Installation (BRAT)

  1. Install the BRAT community plugin.
  2. Add akjir/vaultdav in BRAT settings.
  3. Enable VaultDAV under Settings > Community plugins.

Nextcloud Setup

  1. Open Nextcloud and go to Settings > Security > Devices & sessions.
  2. Enter a device name (for example, Obsidian VaultDAV) and click Create new app password.
  3. Copy the generated App Password.
  4. 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

SettingProperty (VaultDavSettings)Description
Server URLurlNextcloud base URL or WebDAV endpoint (https://<domain>).
UsernameusernameNextcloud account username.
App passwordappPasswordSecretSecret reference ID in Obsidian SecretStorage for your Nextcloud app password (never persisted in plaintext in data.json).
Remote base directoryremoteBaseDirTarget remote folder path inside the Nextcloud user files root.
Sync intervalsyncIntervalAutomatic synchronization interval in minutes (0 to 10080, 0 to disable).
Conflict strategyconflictStrategyResolution mode for concurrent edits (keep_both or newest_wins).
Chunking thresholdchunkingThresholdMBFile size threshold in MB (1 to 512, default 90) above which uploads use Nextcloud OC-Chunked transfers.
Chunk sizechunkSizeMBIndividual chunk size in MB (1 to 512, default 10) for chunked uploads and parallel HTTP Range downloads.

Commands

Command IDNameDescription
vaultdav:sync-nowSynchronize nowExecute a bidirectional synchronization cycle immediately.
vaultdav:test-connectionTest Nextcloud WebDAV connectionVerify Nextcloud credentials and remote base directory access.

Sync Behavior

  • Transfers files as binary payloads (ArrayBuffer) over Obsidian requestUrl, using Nextcloud OC-Chunked uploads (MKCOL / PUT / MOVE) for files exceeding chunkingThresholdMB and parallel HTTP Range downloads (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 custom Vault#configDir names 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.json stores only the secret reference ID (appPasswordSecret) and remains excluded from synchronization. Legacy plaintext appPassword entries in data.json are migrated automatically into SecretStorage and removed from data.json on 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.