Repository navigation
feat(backup): 支持 Agent 加密备份与 MySQL 时间点恢复 - #205
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
远程 Agent 现在可以执行加密备份并解密恢复。Master 仅向获授权的运行记录下发专属派生密钥,主密钥不离开 Master;新归档认证记录身份、分块顺序和结束标记,Master 继续兼容旧加密格式。
MySQL 任务新增全实例 mysqldump 基线与累计 binlog 归档,支持在已归档窗口内按指定时间点恢复。界面提供 PITR 配置、全量间隔、可恢复范围及时间输入;恢复先校验并解码完整链,保留策略和手动删除保护仍被依赖的基线,包括日志删除失败的情况。
验证:后端全量测试与构建、go mod verify、go vet、gofmt;按锁文件安装依赖后,Node 24 下前端 51 个测试、lint、格式检查、类型检查、生产构建与生产依赖审计通过;英文与简体中文文档类型检查和构建通过。
范围:PITR 为逻辑全量加 binlog,适用于全实例恢复,不包含 XtraBackup/MariaBackup 物理增量或 MariaDB。尚未完成真实 MySQL 实例恢复演练。远程加密需要同步升级 Master/Agent,并保存 Master 配置加密密钥。
Closes #166
Closes #168