xiaoyuyu6420/dsh-backup
使用一个命令备份DeepSeek Harness用户数据:/backup,支持定时自动备份、sha256校验和以及轮转。一键备份DSH数据,支持定时自动备份。
项目介绍Project Overview
dsh-backup 是 DeepSeek Harness 的备份还原插件,一条命令归档 ~/.dsh 中的会话、设置、技能与插件配置。提供立即备份、定时任务、列出/校验/删除、恢复前预览以及 GitHub 跨机同步;通过 dsh web 设置面板也可点击操作。换机或误删目录时使用,凭据不会写入归档,注意恢复会覆盖当前配置,建议先用 --dry-run 预览。
dsh-backup is a DeepSeek Harness plugin that archives and restores ~/.dsh, covering sessions, settings, skills, and plugin configuration. It supports immediate backups, scheduled jobs, listing, verification, deletion, restore previews, and GitHub cross-machine sync, with a visual panel in dsh web settings. Use it when migrating machines or recovering from accidental deletion. Credentials are excluded from archives; note that restore overwrites current config, so run --dry-run first to preview changes.
请帮我了解并安装插件:【dsh-backup】【https://github.com/xiaoyuyu6420/dsh-backup】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add @xiaoyuyu6420/dsh-backup
把 xiaoyuyu6420/dsh-backup 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-backup
English | 简体中文
dsh-backup is a DeepSeek Harness (DSH) plugin that backs up and restores ~/.dsh with a single command.
Sessions, settings, skills, and plugin config all live in ~/.dsh. Delete it by accident, break a config, or move to a new machine — with a backup, you get it all back. Credentials never enter an archive; scheduled backups and GitHub sync are supported (details in the advanced guide, Chinese).
Install
dsh plugin --profile web add @xiaoyuyu6420/dsh-backup
# or from GitHub:
dsh plugin --profile web add github:xiaoyuyu6420/dsh-backup
Then restart dsh web. Requires macOS / Linux / Windows 10+ (ships tar) and DSH 0.1.0-rc.6 or compatible.
Quickstart
- Install (above) and restart
dsh web - Run
/backup - Done — the archive lands in
~/Desktop/dsh-backups/, named with a timestamp
Want it on a schedule? /backup auto 12 — every 12 hours, keeps going across restarts.
Commands
| Task | Command |
|---|---|
| Back up now | /backup |
| Schedule | /backup auto 12 (off to stop, status to check) |
| Restore | /backup restore latest (--dry-run to preview) |
| List backups | /backup list |
| Verify integrity | /backup verify [prefix|all] |
| Delete | /backup delete <prefix|latest> |
| Keep N copies (default 7) | /backup --keep N |
Prefer clicking? There's a visual panel in dsh web settings.
New machine
Prerequisite: GitHub sync was configured on the old one (setup).
- Install the plugin, set the same
githubRepo /backup github pull— fetch the remote backups/backup restore latest --sync-deps— restore and reinstall plugin dependencies- Restart
dsh
More
Retention policy, credential redaction, GitHub sync, restore safeguards, config reference, troubleshooting, and development notes — in the advanced guide (Chinese).
Acknowledgements
- @beastrobin — the reserved-method-name root cause analysis in #1 that directly led to the v0.5.1 fix
- @mlosun — the thorough reproduction and root cause report in #2
- @Choi-Peng — triage help pointing affected users to the fix in #5
License
MIT
nexu-io/open-design
ruvnet/ruflo
amruthpillai/reactive-resume
esengine/DeepSeek-Reasonix
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/colleague-skill
nocobase/nocobase