dsh-backup-migrator
Backup and migrate DeepSeek Harness plugin environments via GitHub: one command exports the installed plugin manifest, plugin configs and locally-developed plugin sources into a git repository, and another restores everything on a new machine (VSCode-sett
安装
dsh plugin --profile web add github:zhengjy01/dsh-backup-migrator
需要可复现安装时,可在仓库后追加 #commit 固定提交。
Backup and migrate DeepSeek Harness plugin environments via GitHub: one command exports the installed plugin manifest, plugin configs and locally-developed plugin sources into a git repository, and another restores everything on a new machine (VSCode-sett
该插件未提供要点说明,请参考仓库 README。
- 安装并启动 DeepSeek Harness:
npx @deepseek-ai/dsh web - 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
- 用 dsh plugins list 确认已安装,必要时重启 Harness 生效
插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。
| 代码仓库 | github.com/zhengjy01/dsh-backup-migrator |
| 许可证 | MIT |
| 主要语言 | main |
| 下载量 | 1 |
| GitHub 星标 | 0 |
| 最近推送 | 2026-09-11 |
| 收录日期 | 2026-09-19 |
| 分类 | 开发与运行时 |
事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。
以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。
> **English** | [**中文**](README.zh.md) # dsh-backup-migrator Backup and migrate your DeepSeek Harness plugin environment via a git repository on GitHub — VSCode settings-sync style. - **One command backup**: scan every profile's installed plugins (manifest + load order), plugin configs under `~/.dsh/dsh-*.json` (0600), and **locally-developed plugins** (`link:`/`file:` sources) — the local ones are automatically packed into tarballs so they survive on another machine — then `git commit` + `git push`. - **One command restore**: on a new machine, pull/clone the same repo, reinstall every plugin by source (npm/github reinstall online; local sources install offline from the packed tarballs), write back `dsh.profile.bundles`, the user patch layer `cordis.patch.yml` and the config files. - Backup history = git history (rollback any day). ## Why tarballs for local plugins? DSH plugins come from four sources: npm registry, `github:user/repo#commit`, `link:` and `file:`. On a new machine the `link:`/`file:` local paths do not exist — without packing them, those plugins would be lost. This plugin detects them and `npm pack`s each into the backup repo. ## Compatibility Requires **DeepSeek Harness ≥ 0.1.5-rc.1** (declared as `dsh.engines.dsh` in the package manifest, so the DSH plugin marketplace can report it) and is verified against **0.1.5-rc.1**. This build carries the DSH 0.1.5 adaptations: the strict tool-result contract (lossless-JSON snapshot, `additionalProperties: false` schema validation, and `output.render` returning `ContentBlock[]`) plus executable resolution that survives a launchd-started host whose `PATH` is only `/usr/bin:/bin`. ## Install ```sh dsh plugin --profile web add github:zhengjy01/dsh-backup-migrator # or local dev: # from npm (published package) dsh plugin --profile web add dsh-backup-migrator # or local development dsh plugin --profile web add link:/path/to/dsh-backup-migrator ``` Restart the GUI (`dsh web`) to load the plugin. ## Setup (one time) 1. Create an empty (private recommended) repo on GitHub. 2. Configure via `dshbackup_config`: ```text dshbackup_config backupDir: ~/Documents/DSH-Backup # local git repo dir (clone it on new machines) dshbackup_config repoUrl: git@github.com:user/dsh-backup.git ``` ## Usage | Tool | Purpose | |---|---| | `dshbackup_backup` | scan profiles → build manifest + configs + packed local plugins → commit → push | | `dshbackup_restore` | pull/clone the backup repo → reinstall all plugins → restore configs | | `dshbackup_verify` | preflight before backup or restore (source reachability, git remote, secrets warning) | | `dshbackup_list` | backup history (git log) + latest manifest summary | | `dshbackup_config` | view/change backupDir, repoUrl, includeSecrets | Config is stored at `~/.dsh/dsh-backup-migrator.json` (mode 0600). ### Backup repo layout ``` / ├── manifest.json # machine + profile + plugin + config index ├── README.md # human-readable summary (auto-generated) ├── profiles//cordis.patch.yml # user patch layer (if any) ├── profiles//packages/*.tgz # locally-sourced plugins (npm pack) └── configs/... # ~/.dsh/dsh-*.json + dsh-* dirs (0600) ``` ### On a new machine ```text 1. install DSH, launch once (web/headless profiles are auto-created) 2. install this plugin, then: dshbackup_config backupDir: dshbackup_config repoUrl: dshbackup_restore # clone + reinstall + restore configs 3. restart the GUI ``` ## Security - Plugin configs often contain API keys/tokens (flomo, ticktick, npm...). `includeSecrets` defaults to `true` — **use a private backup repo**, or set `includeSecrets: false` to exclude secret-flagged files. `dshbackup_verify` lists which files are secret-flagged. - Config files keep mode 0600. ## License MIT
数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。