dsh-backup
Skill79 starsChanged 13 days agoMITView on GitHub
DSH 时光机全站一键备份、快照管理与跨设备迁移。用于“帮我备份一下系统/记忆/会话”、“查看备份列表”、“还原指定备份”等需求。
In this repository26 other files it gives its agents.
- doc-tidySkill
- dsh-claude-styleSkill
- dsh-code-craftSkill
- dsh-crewSkill
- dsh-data-craftSkill
- dsh-deep-researchSkill
- dsh-diagramSkill
- dsh-doc-publisherSkill
- dsh-doc-searchSkill
- dsh-doc-tidySkill
- dsh-excel-copilotSkill
- dsh-flashgouSkill
- dsh-lifeSkill
- dsh-mail-craftSkill
- dsh-meeting-copilotSkill
- dsh-memory-syncSkill
- dsh-mobileSkill
- dsh-reviewSkill
- dsh-scrum-masterSkill
- dsh-slidesSkill
- dsh-storyboardSkill
- dsh-tierSkill
- dsh-videoSkill
- dsh-voiceSkill
- dsh-web-crawlerSkill
- dsh-write-craftSkill
The file
Files
DSH 时光机全站备份与迁移技能 (dsh-backup)
本技能封装了 DSH 安卓端全站资产(记忆库 mem.db、全部历史会话 sessions/、用户配置 profiles/、技能集 skills/)的一键安全快照打包、校验与迁移还原。
备份文件统一存放在公共目录 /sdcard/Download/DSH_Backups/(格式为 .dshbackup),支持随时通过微信/QQ/网盘发送到新手机或电脑进行 100% 完整还原。
常用操作
脚本位置:优先使用随包分发的
<本技能目录>/scripts/backup.mjs,或/sdcard/DeepSeekHarness/tools/backup.mjs。
1. 创建全站备份快照
node <本技能目录>/scripts/backup.mjs create [--name 标签名]- 输出包含会话数、文件数、打包后大小与耗时。
2. 查看所有历史备份
node <本技能目录>/scripts/backup.mjs list- 表格化列出所有
.dshbackup备份文件、创建时间、大小与包含的会话数。
3. 校验备份文件完整性
node <本技能目录>/scripts/backup.mjs verify <备份文件绝对路径>- 逐个文件比对 SHA256 哈希,确保无损坏。
4. 从快照还原全站数据
node <本技能目录>/scripts/backup.mjs restore <备份文件绝对路径> --yes- 先校验全部文件哈希、条目路径与解压总长度,再覆盖回 DSH 数据目录;
--yes表示确认覆盖,省略时不会写入。 - 写入前自动生成
BeforeRestore_<时间戳>安全快照;中途失败会给出快照路径,可再用restore <安全快照> --yes回滚。 - 还原后自动触发
mem.js sync重建记忆投影。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

