[FEATURE] Backup: Towers of Hanoi rotation strategy #3271#3272
Open
mkf-sysangels wants to merge 2 commits intobunkerity:devfrom
Open
[FEATURE] Backup: Towers of Hanoi rotation strategy #3271#3272mkf-sysangels wants to merge 2 commits intobunkerity:devfrom
mkf-sysangels wants to merge 2 commits intobunkerity:devfrom
Conversation
[FEATURE] Backup: Towers of Hanoi rotation strategy bunkerity#3271 translations by claude.ai
Contributor
There was a problem hiding this comment.
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 checkcommand. - 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. |
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.
[FEATURE] Backup: Towers of Hanoi rotation strategy #3271
translations by claude.ai