Skip to content

添加可选的自动备份功能 - #409

Open
gzy3894-png wants to merge 1 commit into
omnimind-ai:mainfrom
gzy3894-png:official-auto-backup
Open

添加可选的自动备份功能#409
gzy3894-png wants to merge 1 commit into
omnimind-ai:mainfrom
gzy3894-png:official-auto-backup

Conversation

@gzy3894-png

@gzy3894-png gzy3894-png commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

概要

  • 新增默认关闭的官方 restic 自动备份管理器,并将备份脚本随应用资产一起打包。
  • 增加设置页入口、平台通道 API、应用打开时恢复、Alpine init 恢复,以及 restic 环境安装支持。
  • 补充备份文档,说明默认路径、调度行为、watchdog、错过备份后的 catch-up 机制、重启限制和基础恢复方式。

安全性

  • 默认配置为 BACKUP_ENABLED=0,不会在用户未启用时自动备份。
  • 备份密码文件只在设备本地生成;界面、日志、文档和仓库中只暴露路径,不读取或复制密码内容。
  • 运行时日志、锁文件、快照和本地状态文件不提交到仓库。
  • watchdog 在无 setsid 的降级路径下避免误杀当前进程组。

验证

  • 已运行:find app/src/main/assets/backup-tool -name "*.sh" -exec sh -n {} ;
  • 已运行:git diff --check
  • 未运行:当前环境缺少 ui/.android/include_flutter.groovy,且 dart/flutter 不可用,因此 Gradle、Flutter format 和 analyze 暂时无法执行。

备注

  • 该功能面向 OpenOmniBot 官方应用内置备份,不是 Codex skill。
  • 备份能力默认关闭,维护者可以先审核实现和文档,再决定是否作为官方可选功能开放。

@gzy3894-png gzy3894-png changed the title Add opt-in automatic backup 添加可选的自动备份功能 Jun 29, 2026
@wuzw21 wuzw21 closed this Aug 23, 2026
@wuzw21 wuzw21 reopened this Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants