The off-site copies of a removed app end 30 days after „delete backup data” — the box's half (felhom.eu R-1374 part 1; D72, D84)
gates / gates (push) Successful in 41s

Built, not released; no box has run it. felhom.eu `07-backup-architecture.md` §8.2f.
It does nothing without a hub that knows it: an older hub agrees to no id.

- The record: settings `offsite_ends` {app, removed_at, ends_at}. One writer
  (backup.StartOffsiteEnd), called by a removal only with „delete backup data”
  and by „Törlés 30 nap múlva” on the restore page. A second press changes
  nothing. No record, no deletion. Only on the hub-provisioned tier.
- The date is on the remove dialog before the press; the restore page shows
  „Törlésre kijelölve …” with „Mégis megtartom”, and one history line per
  carried-out end. An install of the same app deletes the record.
- The weekly window: after the guard has passed the policy's plan under the cap
  as before, it adds the snapshots whose app tags are ALL due records, that the
  hub agreed to and the box named in the same request; the result names them
  apart (removed_for_ended_apps). `_shares`, the box's own stacks and an
  installed app are never due.
- The report carries the pending records; the household gets one mail per
  press (offsite_end_scheduled), in both languages.

MinAgent unchanged (0.158.1). 143 parity fixtures gained the dialog's one new
script line (patched, not regenerated); one new parity case.
Tests TestD72_*, TestD84_*; 56 mutations seen red
(felhom.eu documentation/audits/build-release-4-2026-11-15/A/redproof-ctrl-*.txt).

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
admin committed 2026-11-15 14:09:47 +01:00
1 parent 591195fadd
commit f628cb5082
177 files changed
+3705 -164

No files matched your search

+12
View File
@@ -1123,6 +1123,18 @@ The `/apps/{slug}` page renders hero section, screenshots, setup guide, and opti
**Remove modal** shows three sections: (1) always-removed items (Docker volumes, app.yaml, cross-drive schedule), (2) optional HDD data deletion with reimport warning, (3) optional backup data deletion (DB dumps + cross-drive rsync) with restic retention note.
**The off-site copies of a removed app (D72/D84, felhom.eu `07-backup-architecture.md` §8.2f — built, not released, no
box has run it).** On a box with the hub-provisioned off-site tier, „Mentési adatok törlése” deletes the local
backups at once and starts 30 days for the app's off-site copies: the dialog names the day before the press
(`offsite_end_date` in `GET /api/stacks/{name}/backup-data`), the box writes an *off-site end record*
(`settings.json` → `offsite_ends`) and the household gets one mail (`offsite_end_scheduled`). The restore page's
off-site list shows „Törlésre kijelölve. Törlés napja: …” with „Mégis megtartom” (`POST /backup/offsite-end/keep`
deletes the record); a removed app with copies and no record shows „Törlés 30 nap múlva”
(`POST /backup/offsite-end/start`). An install of the same app deletes the record. The copies are removed only in
the weekly clean-up window, by snapshot id, for ids the hub agreed to — never without a record, never a snapshot
that also belongs to an installed app, never `_shares` or the box's own stacks. A box whose off-site target is the
household's own NAS keeps a removed app's copies as before.
**Protected stacks** (traefik, cloudflared, felhom-controller) cannot be stopped, removed, or deleted from the UI. Restart is allowed.
**Orphan detection**: Deployed stacks with no matching catalog template are marked as orphaned with an "Elavult" badge and can be safely deleted.