backup docs: record new 10 GB S3 site and verified first run

This commit is contained in:
inference-bot committed 2026-11-21 17:57:08 +00:00
1 parent e5f4d1d83b
commit 3e0405d2da
1 file changed
+13 -14
+13 -14
View File
@@ -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` | | 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) | | 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`) | | 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`) | | 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) | | 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, 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 `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 - Configured in the **dashboard** (*Settings → Backups*). There is **no write
API**: `GET /api/v1/backup_sites` works, but `PUT`/`POST` on it and API**: `GET /api/v1/backup_sites` works, but `PUT`/`POST` on it and
`POST /backups` all 404. Schedule and retention are dashboard-only. `POST /backups` all 404. Schedule and retention are dashboard-only.
- **Two sites exist:** the live one (`s3-v4-compat`, **two runs/day at - **Two sites exist:** the primary S3 site `5c566609-fedf-4619-8188-e5359728b52c`
02:00 + 14:00 UTC**, **48 h** retention, id (`Infomaniak encrypted backup`, daily **23:00 UTC**, **48 h** retention, bucket
`03cfbdca-88fc-4ccc-97c3-7e1b58cf892d`) and the `filesystem` update site `default`, prefix `cloudron-encrypted/`) and the `filesystem` update site
(`/mnt/data/backups`, normally schedule `never`, 7 d; **temporarily 2/day `931b6104-97ba-4a34-941c-51d1e3c53778` (`/mnt/data/backups`, schedule `never`,
during the 2026-11-21 S3 rebuild**, while the S3 site is set to `never`). 7 d, `enableForUpdates: true`, unencrypted). The old wedged site
Do not be alarmed by the second one. `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`.** On - **Quota math must be measured bucket-side, not derived from `/backups`.** The old
2026-11-21 the retained set was 5 runs / 5.72 GB while the bucket held 23.70 GB bucket held 23.70 GB live while the provider's manager read 173.51 GB — the extra
and rejected a 1 MB PUT. The gap was residue the retained set cannot see: ~166 GB was orphaned Swift SLO segments from repeated 8.12 GB registry tars, and
registry mirror `snapshot/app_c257ba3c…` 8.12 GB (left after `enableBackup=false`), S3 deletes never freed them. The new bucket's first run is 2.455 GB (one session +
orphan session `2026-11-10-140000-961/` 8.12 GB (registry tar, no box record), one mirror), clean: 84 objects, no versioning, no noncurrent versions.
orphan session `2026-11-13-140002-574/` 0.53 GB (chat-legacy tar, no box record).
Disabling an app's backup stops future uploads but never deletes its last mirror 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. 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 Decompose the bucket by top-level dir against retained `remotePath`s before