dsh-backup
其他 活跃维护

dsh-backup

xiaoyuyu6420/dsh-backup

支持一键备份关联平台用户数据,可自定义配置定时自动备份任务,内置SHA256校验机制验证数据完整性,同时支持备份轮转策略避免存储空间浪费,部署后无需额外操作即可稳定运行。

6
Stars 标星
3
Forks 分支
6
Watchers 关注
4
Open Issues
JavaScript
主要语言
MIT
开源协议
185 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:xiaoyuyu6420/dsh-backup
git clone https://github.com/xiaoyuyu6420/dsh-backup.git
git clone git@github.com:xiaoyuyu6420/dsh-backup.git
README.md main

dsh-backup

dsh-plugin
npm
Publish to npm
license

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

  1. Install (above) and restart dsh web
  2. Run /backup
  3. 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).

  1. Install the plugin, set the same githubRepo
  2. /backup github pull — fetch the remote backups
  3. /backup restore latest --sync-deps — restore and reinstall plugin dependencies
  4. 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