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

sync-db-os

ketdketd350 downloads

For synchronization between multiple platforms

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

根据自己的一些需求,写了几个常用的同步功能:

  • 在 Obsidian 中粘贴图片时,插件会自动将图片上传到指定的对象存储,并更新图片链接
  • 支持将以插入的本地图片链接转换为图床地址 效果大致为: ![[xxx.png]] --> ![[xxx.png]](https://xxxx.xxx.os/xxx.png)
  • 手动对比冲突选择正确版本
  • 上传 PDF 等大文件到对象存储

原则上数据库中只保存文本文件,便于灵活修改;大文件在数据库中只存储 hash 值,通过对比 hash 来确定同名文件是否发生变动。

功能特性

  • 本地图片自动上传图床:在编辑笔记时,自动将本地图片上传到图床,并更新图片链接。
  • 冲突解决:当笔记在多个设备上编辑时,支持手动对比冲突,选择正确的版本。
  • 大文件上传:支持将 PDF 等大文件上传到对象存储,避免占用数据库空间。

数据库支持

MongoDB CouchDB
PC 端同步 √ √
支持移动端 × √

对象存储支持

腾讯云 阿里云
是否脱离数据库 × ×
保存多种数据格式 √ ×
支持本地图片
自动部署到图床

√

×

使用的库

  • cos-js-sdk-v5
  • crypto-js
  • diff
  • mongodb
  • pouchdb
  • sweetalert2

如何安装

  1. 克隆此仓库到本地。
    git clone https://github.com/ketd/obsidian-sync-DB-OS.git
    
  2. 进入项目目录。
    cd obsidian-sync-DB-OS
    
  3. 安装依赖。
    npm install
    
  4. 根据需要配置 settings。
  5. 运行插件。

使用方法

  1. 本地图片上传:

    • 在 Obsidian 中粘贴图片时,插件会自动将图片上传到指定的对象存储,并更新图片链接。
  2. 冲突解决:

    • 当检测到笔记在多个设备上有冲突时,会弹出对比窗口,用户可以手动选择正确的版本。
  3. 大文件上传:

    • 支持将大文件(如 PDF)上传到对象存储,并在数据库中保存文件的 hash 值,通过 hash 值来检测文件变动。

配置

数据库

image

对象存储

image

贡献

欢迎提交 issue 或 pull request 来帮助我们改进这个项目。

许可

MIT

HealthFair
ReviewCaution
About
Upload local images to your configured object storage when pasting into notes and update links to point to the remote URL. Compare and resolve cross-device conflicts by manually choosing versions, and store large files (PDFs) in object storage while keeping only their hash in the database to track changes.
AttachmentsImagesSyncing
Details
Current version
1.0.2
Last updated
2 years ago
Created
2 years ago
Updates
1 release
Downloads
350
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
ketdketd
GitHubketd
  1. Community
  2. Plugins
  3. Attachments
  4. sync-db-os

Related plugins

YAOS

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

Ink

Handwriting and drawing directly between paragraphs using a digital pen, stylus, or Apple pencil.

Imagine

A comprehensive image management plugin for managing, inserting, resizing, viewing, and batch processing images.

Local Images Plus

A reincarnation of Local Images to download images in Markdown notes to local storage.

Pixel Perfect Image

Pixel perfect 100% image resizing, copy to clipboard, show image in Finder/Explorer, and much more.

Paste image rename

Rename image after pasting, support name pattern and auto renaming.

Image auto upload

Upload images from your clipboard by PicGo.

Imgur

Upload images from your clipboard to imgur.com and embeds uploaded image to your note.

ima.copilot Sync

Sync ima notes & knowledge-base to Obsidian

Supernote (Unofficial)

Sync and view Supernote notes and Atelier drawings in your vault