dsh-snapshot
界面增强 活跃维护

dsh-snapshot

snow-The/dsh-snapshot

支持对配置目录做快照备份、还原与轮转,归档采用 SHA256 校验并内置路径穿越防护;自带命令完成日常存档与回滚,替代第三方备份插件,操作直接、结果可验证。

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

dsh-snapshot

Backup / restore / rotate snapshots of ~/.dsh for DeepSeek Harness.

  • Archives go to ~/dsh-backups/dsh-backup-<ts>.tar.gz (outside ~/.dsh).
  • node_modules / cache are excluded (regenerable); configs, sessions,
    credentials and plugin manifests are kept.
  • Every archive ships a .sha256 sidecar; snapshot_list verifies them.
  • Restore validates every archive entry stays inside the destination root
    (path-traversal guard) and refuses to run without confirm: true.

Tools

  • snapshot_backup — create a snapshot (keep: number of archives to retain)
  • snapshot_list — list snapshots with sha256 verification
  • snapshot_restore — restore a snapshot (requires confirm: true)

License

MIT