ggcat7 downloadsBack up your vault with end-to-end encryption, rate limiting, and resumable uploads to a self-hosted Go server.
Back up your vault with end-to-end encryption, smooth bandwidth throttling, and resumable chunked uploads to your own self-hosted Go server, where each backup is verified and stored as a clean plaintext snapshot directory tree.
PBKDF2-HMAC-SHA256 (600,000 iterations) + HKDF-SHA256 into separate request-signing and per-session AES-256-GCM encryption keys. Every request and every server response is cryptographically authenticated and replay-protected (HMAC-SHA256 + timestamp + nonce + AAD binding), even over plain HTTP. After verification and decryption, the Go server extracts your vault as a plain directory tree (YYYY-MM-DD_HHMMSS UTC) with zero vendor lock-in.0 for unlimited)..tar.gz (supporting Unicode/CJK filenames and paths > 100 bytes), uploads encrypted chunks with automatic retries, and supports pausing/resuming across Obsidian restarts and Go server restarts.data.json / resume.json (which holds the configured password) and ignoring .trash/, .git/, and workspace cache files by default.In accordance with Obsidian Developer Policies:
data.json and resume.json) and uploads the encrypted archive to your configured server, where your server decrypts and stores the files as plaintext snapshots on your own disk.data.json inside your vault's plugin directory and is strictly excluded from backup archives.fs, zlib, crypto, and http/https APIs (isDesktopOnly: true). Direct filesystem access is used strictly for: (a) read-only streaming of the active vault directory (including hidden config files when enabled) without loading multi-gigabyte vaults into RAM, with lstat/realpath/O_NOFOLLOW/O_NONBLOCK and (dev, ino) hardlink guards so symlinks and secret files cannot escape or leak; and (b) writing temporary compressed staging archives (0600) inside a user-private cache directory (~/.cache/encrypted-backup/ or %LOCALAPPDATA%\encrypted-backup\) outside the vault so cloud-sync tools do not sync temporary backup archives.Download a pre-compiled static binary for Linux (amd64 / arm64), macOS (arm64 / amd64), or Windows (amd64 / arm64) directly from GitHub Releases (all binaries include SHA256SUMS.txt and GitHub SLSA Build Provenance Attestations).
Requires Go 1.24+ (zero external dependencies — 100% Go standard library).
cd server
go build -o obsidian-backup-server .
Cross-compile for a Linux x86_64 server or NAS:
GOOS=linux GOARCH=amd64 go build -o obsidian-backup-server-linux-amd64 .
Recommended (using environment variables or -password-file so the password does not appear in ps aux):
export OEB_PASSWORD="your-strong-shared-password"
export OEB_ADDR=":8765"
export OEB_BACKUP_DIR="/data/obsidian-backups"
export OEB_MAX_SNAPSHOTS="10"
./obsidian-backup-server
Or via CLI flags:
./obsidian-backup-server \
-addr ":8765" \
-password-file /etc/encrypted-backup/password.txt \
-backup-dir ./backups \
-max-snapshots 10
| Flag | Environment Variable | Default | Description |
|---|---|---|---|
-addr |
OEB_ADDR |
:8765 |
Listen address and port |
-password |
OEB_PASSWORD |
(required) | Shared encryption password matching the plugin |
-password-file |
OEB_PASSWORD_FILE |
"" |
File containing shared password (trailing newline trimmed) |
-backup-dir |
OEB_BACKUP_DIR |
./backups |
Root directory for plaintext vault snapshots |
-max-snapshots |
OEB_MAX_SNAPSHOTS |
10 |
Max snapshots retained per vault (0 = unlimited) |
-session-ttl |
OEB_SESSION_TTL |
24h |
Expiration window for incomplete upload checkpoints |
-max-archive-mb |
OEB_MAX_ARCHIVE_MB |
2048 |
Max compressed archive size (MiB) |
-max-extracted-mb |
OEB_MAX_EXTRACTED_MB |
5120 |
Max extracted plaintext size (MiB) |
-max-files |
OEB_MAX_FILES |
100000 |
Max files per snapshot |
-max-active-sessions |
OEB_MAX_ACTIVE_SESSIONS |
16 |
Max concurrent active upload sessions |
-max-staging-mb |
OEB_MAX_STAGING_MB |
4096 |
Aggregate staging quota (MiB) |
-tls-cert / -tls-key |
OEB_TLS_CERT / OEB_TLS_KEY |
"" |
Optional native HTTPS certificate & private key |
backups/
├── .staging/ # Temporary in-flight uploads (cleaned on completion)
└── MyVault/
├── 2026-11-28_150512/ # Plaintext UTC snapshot directory
│ ├── .obsidian/
│ ├── Notes/
│ └── attachments/
└── 2026-11-29_091500/
Copy manifest.json, main.js, and styles.css into <your-vault>/<config-dir>/plugins/encrypted-backup/, enable Encrypted Backup in Settings → Community plugins, configure your Server URL and Encryption password, click Test connection, and run Run one-shot encrypted backup from the ribbon or command palette.
Requires Node.js 22.18+ (for native TypeScript test execution; npm run build works on Node 20+).
npm install
npm run build
# Go server tests (race detector, deadlock stress, restart resume, security)
cd server && go test -v -race ./...
# Plugin typecheck, Obsidian ESLint check, unit & real Go server E2E tests
cd ..
npm run typecheck
npm run lint
npm test
server/):纯 Go 1.24 标准库实现、零外部依赖。通过 OEB_PASSWORD(或 -password-file)配置与插件一致的共享密码,接收加密分片并在校验 SHA-256 后直接解压为 UTC 时间戳明文快照目录,自动清理超过上限的旧快照。src/):Obsidian 桌面端插件,默认限速 50 KB/s,支持「测试连接 / 校验密码」、实时进度/速率/ETA、暂停保留断点与断点续传,强制排除本插件自身的 data.json(含密码)与默认忽略噪声文件。manifest.json、main.js、styles.css,复制到 <Vault>/.obsidian/plugins/encrypted-backup/ 启用即可。