Skip to content

[FEATURE] Backup: Towers of Hanoi rotation strategy #3271#3272

Open
mkf-sysangels wants to merge 2 commits intobunkerity:devfrom
mkf-sysangels:FEATURE]-Backup-Towers-of-Hanoi-rotation-strategy-#3271
Open

[FEATURE] Backup: Towers of Hanoi rotation strategy #3271#3272
mkf-sysangels wants to merge 2 commits intobunkerity:devfrom
mkf-sysangels:FEATURE]-Backup-Towers-of-Hanoi-rotation-strategy-#3271

Conversation

@mkf-sysangels
Copy link

[FEATURE] Backup: Towers of Hanoi rotation strategy #3271

translations by claude.ai

[FEATURE] Backup: Towers of Hanoi rotation strategy bunkerity#3271

translations by claude.ai
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new “Towers of Hanoi” backup rotation strategy to the Backup core plugin, alongside integrity features (checksums + verification) and operational safeguards, extending BunkerWeb’s backup capabilities beyond simple FIFO retention.

Changes:

  • Add BACKUP_SCHEDULE=hanoi (hourly job) with Towers of Hanoi rotation (24 files, ~85 days coverage).
  • Add SHA-256 checksum generation for backups, checksum verification on restore, and a new bwcli plugin backup check command.
  • Add a disk-space pre-flight check before dumping and adjust locking behavior to reduce lock hold time.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/common/core/backup/plugin.json Exposes hanoi schedule, adds restore checksum override setting, schedules job hourly, adds new bwcli command.
src/common/core/backup/jobs/backup-data.py Implements hourly schedule handling, Hanoi rotation invocation, WAL/lock behavior changes, adds debug logging.
src/common/core/backup/bwcli/save.py Updates CLI save to use WAL detection + post-dump unlocking, integrates updated backup API.
src/common/core/backup/bwcli/check.py New CLI command to verify backup checksums.
src/common/core/backup/backup.py Adds disk-space check, Hanoi rotation logic, checksum write/verify, restore-time verification, and post-dump hook support.
src/common/core/backup/README.md Documents new schedule, checksum behavior, disk-space check, and new CLI command.
src/common/core/backup/README.zh.md Translated docs updated for new schedule/checksum/CLI features.
src/common/core/backup/README.fr.md Translated docs updated for new schedule/checksum/CLI features.
src/common/core/backup/README.es.md Translated docs updated for new schedule/checksum/CLI features.
src/common/core/backup/README.de.md Translated docs updated for new schedule/checksum/CLI features.

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