From 3e0405d2da6f9c9645c5f41a4f72742726521ed0 Mon Sep 17 00:00:00 2001 From: Inferencebot Date: Sat, 21 Nov 2026 17:57:08 +0000 Subject: [PATCH] backup docs: record new 10 GB S3 site and verified first run --- maintenance/backups.md | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/maintenance/backups.md b/maintenance/backups.md index 981e9ee..37cd171 100644 --- a/maintenance/backups.md +++ b/maintenance/backups.md @@ -10,10 +10,10 @@ mistake — they do not back each other up, and neither one covers the other's h | Machine | Agent host `ov-0f018e` (`179.237.103.165`) | The Cloudron server `179.237.86.116` | | Tool | `restic` (client-side encrypted, run nightly by a systemd timer) | Cloudron's built-in backup (dashboard-configured) | | Target | Infomaniak **Swiss Backup** (S3-compatible) | Infomaniak **Swiss Backup** (S3-compatible, `s3-v4-compat`) | -| Schedule | 04:30 UTC + up to 5 min jitter (`agent-backup.timer`) | 02:00 + 14:00 UTC (`00 00 2,14 * * *`) | +| Schedule | 04:30 UTC + up to 5 min jitter (`agent-backup.timer`) | 23:00 UTC daily (`00 00 23 * * *`) | | Retention | 7 daily / 4 weekly / 3 monthly, no grouping | 48 h (`keepWithinSecs: 172800`) | | Config lives | installed as `/usr/local/sbin/agent-backup` (root-owned) from `~/.hermes/scripts/backup.sh`; unit at `/etc/systemd/system/agent-backup.*` | Cloudron dashboard (no write API — see below) | -| Last verified | 2026-11-04 (13 snapshots in the repo) | 2026-11-21: 5 retained runs / 5.72 GB, but bucket 23.70 GB — 16.76 GB is orphan/mirror residue (see below) | +| Last verified | 2026-11-04 (13 snapshots in the repo) | 2026-11-21: new S3 bucket 1 run / 2.455 GB, integrity passed; local bridge run also verified | Nothing on the Cloudron **host OS** is backed up by either system (netplan, sshd, `authorized_keys`, hand-edited `/etc`) — build the box, do not expect to restore @@ -112,18 +112,17 @@ having failed. - Configured in the **dashboard** (*Settings → Backups*). There is **no write API**: `GET /api/v1/backup_sites` works, but `PUT`/`POST` on it and `POST /backups` all 404. Schedule and retention are dashboard-only. -- **Two sites exist:** the live one (`s3-v4-compat`, **two runs/day at - 02:00 + 14:00 UTC**, **48 h** retention, id - `03cfbdca-88fc-4ccc-97c3-7e1b58cf892d`) and the `filesystem` update site - (`/mnt/data/backups`, normally schedule `never`, 7 d; **temporarily 2/day - during the 2026-11-21 S3 rebuild**, while the S3 site is set to `never`). - Do not be alarmed by the second one. -- **Quota math must be measured bucket-side, not derived from `/backups`.** On - 2026-11-21 the retained set was 5 runs / 5.72 GB while the bucket held 23.70 GB - and rejected a 1 MB PUT. The gap was residue the retained set cannot see: - registry mirror `snapshot/app_c257ba3c…` 8.12 GB (left after `enableBackup=false`), - orphan session `2026-11-10-140000-961/` 8.12 GB (registry tar, no box record), - orphan session `2026-11-13-140002-574/` 0.53 GB (chat-legacy tar, no box record). +- **Two sites exist:** the primary S3 site `5c566609-fedf-4619-8188-e5359728b52c` + (`Infomaniak encrypted backup`, daily **23:00 UTC**, **48 h** retention, bucket + `default`, prefix `cloudron-encrypted/`) and the `filesystem` update site + `931b6104-97ba-4a34-941c-51d1e3c53778` (`/mnt/data/backups`, schedule `never`, + 7 d, `enableForUpdates: true`, unencrypted). The old wedged site + `03cfbdca-88fc-4ccc-97c3-7e1b58cf892d` and its bucket were deleted on 2026-11-21. +- **Quota math must be measured bucket-side, not derived from `/backups`.** The old + bucket held 23.70 GB live while the provider's manager read 173.51 GB — the extra + ~166 GB was orphaned Swift SLO segments from repeated 8.12 GB registry tars, and + S3 deletes never freed them. The new bucket's first run is 2.455 GB (one session + + one mirror), clean: 84 objects, no versioning, no noncurrent versions. Disabling an app's backup stops future uploads but never deletes its last mirror object; a copy-phase failure leaves a session dir that retention never prunes. Decompose the bucket by top-level dir against retained `remotePath`s before