Hub: retention and verification for off-host backup targets

未关闭
#41 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
kotlin
领域
backend, devops

调研方向

Read hub/cloudbridge_hub/backups.py, backupcrypt.py, cli.py, and doctor.py, then check the backup profile in deploy/compose.yaml to trace target configuration and existing archive handling. Use a temporary target directory for the requested tests. Done means opt-in pruning targets only matching archives without following symlinks, written archives can be checked without the secret key, and doctor reports the newest target archive's age when mounted.

由索引模型根据 Issue 内容生成。

描述

backend difficulty: intermediate enhancement privacy self-hosting

Context

prune-backups --older-than N expires archives in the data volume's backups/, but archives written to
CB_BACKUP_TARGET_PATH (a NAS mount, an external disk) need manual retention. Old archives keep photos that were
hidden later, so retention matters for privacy.

Acceptance criteria

  • prune-backups can act on the configured target path (opt-in flag), only on files matching
    cloudbridge-*.cbbk, never following symlinks.
  • The backup profile can verify the new archive's structure after writing (without the secret key: header,
    manifest signature or size checks only).
  • doctor reports the age of the newest archive on the target when it is mounted.
  • Tests with a temporary target directory.

Pointers

  • hub/cloudbridge_hub/backups.py, backupcrypt.py, cli.py, doctor.py; deploy/compose.yaml (profile backup)
主要语言
Kotlin
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ft-dev-org/cloudbridge-oss 的其他 Issue

查看 ft-dev-org/cloudbridge-oss 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。