Commit Graph

12 Commits

Author SHA1 Message Date
root
a6fb9e5e18 Wire management-platform's backup/restore routes to the k8s scripts
api_backup_run and restore_start were still hardcoded to the Docker-era
backup-myapps.sh/restore-myapps.sh, which target Docker volumes that no
longer exist for the 5 apps now running in k3s (n8n, odoo, mautic,
nextcloud, frappe/erpnext) — every backup/restore triggered from the UI
has been silently hollow for these apps since the migration.

- api_backup_run: /root/backup-myapps.sh -> /root/CloudOps/backup/backup-k8s-apps.sh
- restore_start: switched from the old image-relative path (which resolved
  to /app/restore-myapps.sh, baked into the Docker image from platform/)
  to an absolute /root/CloudOps/backup/restore-k8s-apps.sh path — the new
  backup/ folder is a sibling of platform/, not part of the Docker build
  context, so it's only reachable via the pod's existing /root hostPath
  mount, the same way api_backup_run already reaches its script.

--apps flag shape and the job-log streaming contract are unchanged, so no
frontend/template changes needed for the core flow. modules/backups.py's
three hardcoded myapps-backup-* references (get_local_backups, get_vm_backups
x2, delete_backup's filename regex) now also recognize the new
myapps-k8s-backup-* prefix, so both backup lineages stay visible/manageable
in the UI.

Depends on the previous commit (scoped ServiceAccount + k3s kubectl access
for the pod) to actually function when triggered from the UI.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-20 11:30:14 +02:00
04bbbb192b Change : sonarqubefix , backup.py 2026-06-21 19:31:24 +01:00
c3e3a3b28c Change : dashboard , containers 2026-06-12 21:49:47 +01:00
b3d3c0d457 fix: use psutil for reliable CPU and memory metrics 2026-06-04 15:24:02 +01:00
d2a7e72dd0 fix: cpu/memory 2026-06-04 13:53:46 +01:00
a5ddeba7be fix: add docker CLI and host passwd mount 2026-06-04 13:07:08 +01:00
root
53f36d0ac7 Sync from main server - 2026-05-16 00:38:48 2026-05-16 00:38:48 +02:00
root
09bbe0403c Sync from main server - 2026-05-05 00:20:15 2026-05-05 00:20:15 +02:00
root
a8db6b5fa2 Sync from main server - 2026-04-18 18:47:38 2026-04-18 18:47:38 +02:00
root
81347bbdd2 Sync from main server - 2026-04-16 13:42:46 2026-04-16 13:42:46 +02:00
root
68870eb3db Sync from main server - 2026-04-15 13:03:38 2026-04-15 13:06:08 +02:00
root
1166a52f26 Initial commit: CloudOps infrastructure platform 2026-04-09 19:58:57 +02:00