Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Encrypted Backup

ggcatggcat7 downloads

Back up your vault with end-to-end encryption, rate limiting, and resumable uploads to a self-hosted Go server.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

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.


Key Features

  • End-to-End Encrypted Transit, Plaintext Server Snapshots: Both the plugin and your Go server share a single user-configured password. Keys are derived via 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.
  • Smooth Rate Limiting: Client-side GCRA bandwidth pacing defaults to 50 KB/s (kilobytes per second, configurable in settings, 0 for unlimited).
  • Resumable Chunked Uploads: Packs your vault into a streaming POSIX PAX .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.
  • Snapshot Retention: Atomically publishes timestamped snapshots per vault and automatically prunes older snapshots beyond the configured limit.
  • Password & Secret Hygiene: Backs up notes, attachments, and optionally your vault config folder, while unconditionally excluding this plugin's own data.json / resume.json (which holds the configured password) and ignoring .trash/, .git/, and workspace cache files by default.

Network Usage, Privacy & Security Disclosure

In accordance with Obsidian Developer Policies:

  1. Network Access: This plugin makes outbound HTTP/HTTPS requests only to the self-hosted server URL explicitly configured by the user in plugin settings. It never contacts any third-party service, cloud endpoint, or telemetry server.
  2. Data Transmitted: When you manually trigger a backup, the plugin packs and encrypts your local vault files (respecting your ignore patterns and unconditionally excluding this plugin's own 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.
  3. Local Credential Storage: Your configured shared password is stored locally in the plugin's data.json inside your vault's plugin directory and is strictly excluded from backup archives.
  4. No Account, Payment, or Telemetry: Completely free, open-source (MIT), zero analytics, zero tracking.
  5. Desktop Only & Direct Filesystem Access: Uses Node.js 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.

1. Self-Hosted Go Backup Server

Pre-built Binaries (Recommended)

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).

Build from Source

Requires Go 1.24+ (zero external dependencies — 100% Go standard library).

Build

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 .

Run

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

Server Configuration

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

Resulting Server Directory Layout

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/

2. Installing & Building the Obsidian Plugin

From Community Plugins / GitHub Releases

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.

Build from Source

Requires Node.js 22.18+ (for native TypeScript test execution; npm run build works on Node 20+).

npm install
npm run build

3. Running Tests & Linting

# 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/ 启用即可。
HealthExcellent
ReviewSatisfactory
About
Back up your vault end-to-end encrypted to a self-hosted Go server and store each backup as a verified plaintext snapshot directory tree labeled by UTC timestamp. Pack and upload resumable, chunked .tar.gz streams with smooth bandwidth throttling and cryptographically authenticated transfers, retain timestamped snapshots with automatic pruning, and exclude plugin data, trash, git, and workspace cache files.
BackupSyncingIntegrations
Details
Current version
1.0.2
Last updated
7 hours ago
Created
16 hours ago
Updates
4 releases
Downloads
7
Compatible with
Obsidian 1.5.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
ggcatggcatraysry
GitHubraysry
  1. Community
  2. Plugins
  3. Backup
  4. Encrypted Backup

Related plugins

Self-hosted LiveSync

Sync vaults securely to self-hosted servers or WEBRTC.

Fast Note Sync

Real-time sync of your vaults across server, mobile, and web; shareable with anyone; supports REST and MCP integrations to build your personal AI knowledge base.

Google Drive Sync

Syncs a vault into Google Drive for cross-platform use (works for iOS).

Sync Engine

The extensible vault synchronization engine: Fast · Free · Reliable. Supports WebDAV, S3, Google Drive, and Dropbox.

YAOS

Simple real-time sync powered by your own Cloudflare Worker.

OneDrive Sync

Sync your Obsidian vault with OneDrive Personal/Consumer

Nextcloud Sync

Bidirectional sync between Obsidian and Nextcloud using hash-based change detection.

GitHub

Git Sync

Sync your vault across all devices using your own GitHub account. Free forever.

GitHub

GitHub Sync

Sync vault to personal GitHub.

Air Sync

Keep your vault in sync across devices without managing sync—sync only what changed, preserve conflicting edits, and use your own Google Drive, OneDrive, or Dropbox.