diff --git a/ansible/roles/platform/defaults/main.yml b/ansible/roles/platform/defaults/main.yml index 320541fcd..ae9fa67fa 100644 --- a/ansible/roles/platform/defaults/main.yml +++ b/ansible/roles/platform/defaults/main.yml @@ -19,6 +19,7 @@ platform_k8tz_warmup_pod_name: bootstrap-image-warmup-k8tz platform_bootstrap_namespaces: - home-automation - media + - platform-system - selfhosted platform_bootstrap_releases: diff --git a/ansible/roles/platform/tasks/create_claims.yml b/ansible/roles/platform/tasks/create_claims.yml index 767de48e0..e62d87ed1 100644 --- a/ansible/roles/platform/tasks/create_claims.yml +++ b/ansible/roles/platform/tasks/create_claims.yml @@ -25,6 +25,7 @@ - selfhosted/restic/manifests/restic-credentials-store.clustersecretstore - home-automation/home-automation-backup/manifests/restic-credentials.externalsecret - media/media-backup/manifests/restic-credentials.externalsecret + - platform-system/platform-system-backup/manifests/restic-credentials.externalsecret - name: Wait for namespace recovery credentials ansible.builtin.include_tasks: wait_items.yml @@ -40,6 +41,11 @@ namespace: media name: restic-credentials condition_type: Ready + - api_version: external-secrets.io/v1 + kind: ExternalSecret + namespace: platform-system + name: restic-credentials + condition_type: Ready - name: Identify this Kubernetes installation kubernetes.core.k8s_info: diff --git a/ansible/roles/restic/defaults/main.yml b/ansible/roles/restic/defaults/main.yml index 21247178b..082bea4ad 100644 --- a/ansible/roles/restic/defaults/main.yml +++ b/ansible/roles/restic/defaults/main.yml @@ -24,6 +24,7 @@ restic_restore_excluded_apps: - root - media-backup - home-automation-backup + - platform-system-backup # Native SQL-and-uploads recovery is documented in the Restic runbook. - sparkyfitness restic_restore_excluded_pvcs: diff --git a/ansible/roles/restic/tasks/cold.yml b/ansible/roles/restic/tasks/cold.yml index 18c70d2e1..43ad0a045 100644 --- a/ansible/roles/restic/tasks/cold.yml +++ b/ansible/roles/restic/tasks/cold.yml @@ -2,7 +2,7 @@ - name: Require a concrete source and exact new destination ansible.builtin.assert: that: - - restic_recovery_namespace | default('') in ['media', 'selfhosted', 'home-automation'] + - restic_recovery_namespace | default('') in ['home-automation', 'media', 'platform-system', 'selfhosted'] - restic_recovery_claim | default('') is match('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$') - restic_recovery_uid | default('') is match('^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$') - restic_restore_snapshot is match('^[0-9a-f]{64}$') diff --git a/apps/platform-system/grafana/values.yaml b/apps/platform-system/grafana/values.yaml index 29d8695b0..26eb25ac3 100644 --- a/apps/platform-system/grafana/values.yaml +++ b/apps/platform-system/grafana/values.yaml @@ -16,6 +16,22 @@ controllers: strategy: Recreate annotations: reloader.stakater.com/auto: "true" + initContainers: + copy-data: + image: + repository: busybox + tag: 1.37.0 + command: + - /bin/sh + - /migration/copy.sh + - dpool/pvc-43153b5f-95e7-4574-812c-89d680efdf6a + - grafana.db + securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + capabilities: + drop: + - ALL containers: app: image: @@ -70,9 +86,36 @@ route: persistence: data: type: persistentVolumeClaim - existingClaim: grafana - globalMounts: - - path: /var/lib/grafana + forceRename: grafana-appdata + accessMode: ReadWriteOnce + storageClass: zfs-appdata + size: 1Gi + advancedMounts: + main: + app: + - path: /var/lib/grafana + subPath: data + copy-data: + - path: /destination + original: + type: custom + volumeSpec: + persistentVolumeClaim: + claimName: grafana + readOnly: true + advancedMounts: + main: + copy-data: + - path: /original + readOnly: true + migration: + type: configMap + name: telemetry-storage-migration + advancedMounts: + main: + copy-data: + - path: /migration + readOnly: true datasource: type: configMap name: grafana-datasource diff --git a/apps/platform-system/platform-system-backup/app.yaml b/apps/platform-system/platform-system-backup/app.yaml new file mode 100644 index 000000000..d65afe3cf --- /dev/null +++ b/apps/platform-system/platform-system-backup/app.yaml @@ -0,0 +1,7 @@ +--- +chart: + repo: oci://ghcr.io/bjw-s-labs/helm/app-template + path: "." + version: 5.3.0 +sync: + wave: "0" diff --git a/apps/platform-system/platform-system-backup/manifests/platform-system-backup.configmap.yaml b/apps/platform-system/platform-system-backup/manifests/platform-system-backup.configmap.yaml new file mode 100644 index 000000000..b82247e82 --- /dev/null +++ b/apps/platform-system/platform-system-backup/manifests/platform-system-backup.configmap.yaml @@ -0,0 +1,118 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: platform-system-backup + namespace: platform-system +data: + prepare.py: |- + import json + import os + import re + import shutil + import sqlite3 + import subprocess + import time + from contextlib import closing + from pathlib import Path + from urllib.parse import urlencode + from urllib.request import urlopen + from uuid import UUID + + RUN = str(UUID(os.environ["POD_UID"])) + + def stage(claim): + fields = [line.split() for line in Path("/proc/self/mountinfo").read_text().splitlines()] + mounts = [f for f in fields if f[4] == str(claim)] + if len(mounts) != 1: + raise ValueError(f"Missing or ambiguous mount: {claim}") + mount = mounts[0] + i = mount.index("-") + if (mount[3] != "/" or "rw" not in mount[5].split(",") or + mount[i + 1] != "zfs" or not re.fullmatch(r"dpool/k8s/pvc-[0-9a-f-]{36}", mount[i + 2])): + raise ValueError(f"Unexpected appdata mount: {claim}") + if not (claim / "data").is_dir() or (claim / "data").is_symlink(): + raise ValueError(f"Application data not ready: {claim}") + staging = claim / ".restic-backup" + staging.mkdir(mode=0o700, exist_ok=True) + if staging.is_symlink() or staging.stat().st_uid != 0: + raise ValueError(f"Unsafe staging directory: {staging}") + # Jobs have a six-hour deadline. Keep a full day before reclaiming another run. + for entry in staging.iterdir(): + if (re.fullmatch(r"[0-9a-f-]{36}", entry.name) and not entry.is_symlink() + and entry.is_dir() and (entry.name == RUN or entry.stat().st_mtime < time.time() - 86400)): + shutil.rmtree(entry) + target = staging / RUN / "data" + target.mkdir(parents=True) + return target + + def copy_metadata(source, dest): + info = source.stat() + os.chown(dest, info.st_uid, info.st_gid) + shutil.copystat(source, dest) + + def backup_grafana(claim): + source = claim / "data" + db = source / "grafana.db" + if not db.is_file() or db.is_symlink(): + raise ValueError("Grafana database missing") + target = stage(claim) + copy = target / "grafana.db" + with closing(sqlite3.connect(f"{db.as_uri()}?mode=ro", uri=True)) as live: + with closing(sqlite3.connect(copy)) as saved: + live.backup(saved, pages=256) + if saved.execute("PRAGMA quick_check").fetchall() != [("ok",)]: + raise ValueError("Grafana SQLite integrity check failed") + copy_metadata(db, copy) + for item in source.iterdir(): + if item.name not in {"grafana.db", "grafana.db-shm", "grafana.db-wal", "grafana.db-journal"}: + subprocess.run(["cp", "-a", "--", item, target], check=True) + copy_metadata(source, target) + + def snapshot_api(action, **fields): + fields["authKey"] = Path("/run/vm-snapshot/key").read_text().strip() + endpoint = "http://victoria-metrics.platform-system.svc:8428/snapshot/" + action + with urlopen(endpoint, urlencode(fields).encode(), timeout=300) as reply: + result = json.load(reply) + if result["status"] != "ok": + raise ValueError(f"VictoriaMetrics snapshot {action} failed") + return result + + def link_parts(source, target, data): + # VM's snapshot contains links into its per-partition immutable snapshot trees. + source = source.resolve(strict=True) + if not source.is_relative_to(data): + raise ValueError(f"Snapshot path outside metrics volume: {source}") + if source.is_file(): + os.link(source, target) + elif source.is_dir(): + target.mkdir(exist_ok=True) + for entry in source.iterdir(): + link_parts(entry, target / entry.name, data) + copy_metadata(source, target) + else: + raise ValueError(f"Unexpected entry in metrics snapshot: {source}") + + def backup_metrics(claim): + data = claim / "data" + if not (data / "metadata").is_dir(): + raise ValueError("VictoriaMetrics storage missing") + target = stage(claim) + name = snapshot_api("create")["snapshot"] + if not re.fullmatch(r"[a-zA-Z0-9_-]+", name): + raise ValueError("Unexpected snapshot name") + try: + snapshot = data / "snapshots" / name + if not (snapshot / "metadata").is_dir() or not (snapshot / "data").is_dir(): + raise ValueError("API snapshot missing on mounted volume") + link_parts(snapshot, target, data) + # During the storage migration the app init container checks this record. + marker = data / ".home-ops-copied-from" + if marker.is_file(): + subprocess.run(["cp", "-a", "--", marker, target], check=True) + copy_metadata(data, target) + finally: + snapshot_api("delete", snapshot=name) + + backup_grafana(Path("/claims/grafana")) + backup_metrics(Path("/claims/metrics")) diff --git a/apps/platform-system/platform-system-backup/manifests/restic-credentials.externalsecret.yaml b/apps/platform-system/platform-system-backup/manifests/restic-credentials.externalsecret.yaml new file mode 100644 index 000000000..6e412a565 --- /dev/null +++ b/apps/platform-system/platform-system-backup/manifests/restic-credentials.externalsecret.yaml @@ -0,0 +1,25 @@ +--- +apiVersion: external-secrets.io/v1 +kind: ExternalSecret +metadata: + name: restic-credentials + namespace: platform-system +spec: + refreshInterval: 5m + secretStoreRef: + name: external-secrets-store + kind: ClusterSecretStore + target: + name: restic-credentials + creationPolicy: Owner + template: + mergePolicy: Merge + data: + VM_SNAPSHOT_KEY: "{{ printf \"victoria-metrics/snapshot/v1:%s\" .RESTIC_PASSWORD | sha256sum }}" + data: + - secretKey: RESTIC_PASSWORD + remoteRef: + key: restic_server_password + - secretKey: RESTIC_REPOSITORY_ID + remoteRef: + key: restic_repository_id diff --git a/apps/platform-system/platform-system-backup/values.yaml b/apps/platform-system/platform-system-backup/values.yaml new file mode 100644 index 000000000..16d34c8cb --- /dev/null +++ b/apps/platform-system/platform-system-backup/values.yaml @@ -0,0 +1,130 @@ +--- +defaultPodOptions: + automountServiceAccountToken: false + securityContext: + runAsUser: 0 + runAsGroup: 0 + seccompProfile: + type: RuntimeDefault + +controllers: + backup: + type: cronjob + cronjob: + schedule: "35 3 * * *" + timeZone: Europe/Warsaw + concurrencyPolicy: Forbid + activeDeadlineSeconds: 21600 + backoffLimit: 1 + initContainers: + prepare: + image: + repository: python + tag: 3.14-alpine@sha256:5862d971d1f0ae26b258cefa4e893556b1d3aba81bd2ff30888704ad378bab67 + command: + - python + - /scripts/prepare.py + securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + capabilities: + drop: + - ALL + add: + - CHOWN + - DAC_OVERRIDE + - FOWNER + env: + POD_UID: &podUid + valueFrom: + fieldRef: + fieldPath: metadata.uid + containers: + app: + image: + repository: restic/restic + tag: 0.20.0 + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + add: + - DAC_READ_SEARCH + command: + - /bin/sh + - -ec + - | + case "$RESTIC_REPOSITORY_ID" in ""|*[!0-9a-f]*) exit 1 ;; esac + test "${#RESTIC_REPOSITORY_ID}" -eq 64 + actual=$(restic --no-lock cat config | sed -n 's/^ *"id": *"\([0-9a-f]*\)"[,]*$/\1/p') + test "$actual" = "$RESTIC_REPOSITORY_ID" + root=/data/appdata/platform-system + for name in grafana-appdata victoria-metrics-appdata; do + awk -v path="$root/$name" -v stage="/.restic-backup/$POD_UID" ' + $4 == stage && $5 == path && $6 ~ /(^|,)ro(,|$)/ { + for (i=7; i "$stage/$marker" + sync + mv "$stage" /destination/data + sync diff --git a/apps/platform-system/victoria-metrics/values.yaml b/apps/platform-system/victoria-metrics/values.yaml index 03dbfd9ec..5f6497acf 100644 --- a/apps/platform-system/victoria-metrics/values.yaml +++ b/apps/platform-system/victoria-metrics/values.yaml @@ -18,6 +18,22 @@ controllers: reloader.stakater.com/auto: "true" serviceAccount: identifier: main + initContainers: + copy-data: + image: + repository: busybox + tag: 1.37.0 + command: + - /bin/sh + - /migration/copy.sh + - dpool/pvc-eaa3d6a3-3989-4535-9021-5f550ad366ba + - metadata + securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + capabilities: + drop: + - ALL containers: app: image: @@ -28,6 +44,8 @@ controllers: - -retentionPeriod=1y - -promscrape.config=/config/scrape.yaml - -deleteAuthKey=file:///run/vm-admin/key + - -snapshotAuthKey=file:///run/vm-snapshot/key + - -snapshotsMaxAge=1d - -memory.allowedBytes=192MiB - -storage.minFreeDiskSpaceBytes=1GiB env: @@ -89,9 +107,36 @@ service: persistence: storage: type: persistentVolumeClaim - existingClaim: victoria-metrics - globalMounts: - - path: /storage + forceRename: victoria-metrics-appdata + accessMode: ReadWriteOnce + storageClass: zfs-appdata + size: 64Gi + advancedMounts: + main: + app: + - path: /storage + subPath: data + copy-data: + - path: /destination + original: + type: custom + volumeSpec: + persistentVolumeClaim: + claimName: victoria-metrics + readOnly: true + advancedMounts: + main: + copy-data: + - path: /original + readOnly: true + migration: + type: configMap + name: telemetry-storage-migration + advancedMounts: + main: + copy-data: + - path: /migration + readOnly: true config: type: configMap name: victoria-metrics-scrape @@ -120,3 +165,15 @@ persistence: globalMounts: - path: /run/vm-admin readOnly: true + + snapshot-key: + type: secret + name: restic-credentials + items: + - key: VM_SNAPSHOT_KEY + path: key + advancedMounts: + main: + app: + - path: /run/vm-snapshot + readOnly: true diff --git a/docs/wiki/apps/platform-system/grafana.md b/docs/wiki/apps/platform-system/grafana.md index b871ab422..4b1771a1a 100644 --- a/docs/wiki/apps/platform-system/grafana.md +++ b/docs/wiki/apps/platform-system/grafana.md @@ -3,7 +3,7 @@ Purpose: serve host, workload and uptime dashboards and evaluate alerts against VictoriaMetrics. Status: current. Reviewed against: `cdb7a398deaa06451737a5a43e895942443e7d3c` and this revision. -Use the private Gateway route for Grafana. Git provisions the dashboards, data source and alerting configuration. A local telemetry volume holds SQLite and UI state across pod replacements. Pool loss requires reprovisioning and resets that state. Gatus owns production notifications during comparison. +Use the private Gateway route for Grafana. Git provisions the dashboards, data source and alerting configuration. The appdata volume holds SQLite and UI state across pod replacements. The platform-system Restic backup preserves it for pool recovery. Gatus owns production notifications during comparison. ## Credentials and status sharing diff --git a/docs/wiki/apps/platform-system/platform-system-backup.md b/docs/wiki/apps/platform-system/platform-system-backup.md new file mode 100644 index 000000000..e2c145f69 --- /dev/null +++ b/docs/wiki/apps/platform-system/platform-system-backup.md @@ -0,0 +1,25 @@ +# Platform namespace backup + +Purpose: protect the Grafana database and VictoriaMetrics history in the namespace Restic snapshot. +Status: current. Reviewed against: `ef58c5179dea280f1360556f6ba60166158840a7` and this revision. + +The daily Job uses SQLite's online backup for Grafana and the VictoriaMetrics +snapshot API for metrics. These give each database a consistent recovery +point while it continues to serve traffic. The Restic container reads the +prepared images at the standard namespace claim paths. Data under `data/` +restores directly into each application's appdata PVC. Use the full snapshot +ID in the [restore runbook](../../operations/restic-backup-restore.md). + +The backup uses the internal Restic service and a namespace-scoped secret. +After recovery, open Grafana, verify the shared uptime dashboard, and query +VictoriaMetrics at a timestamp preceding the backup. + +## Sources + +- [Application](../../../../apps/platform-system/platform-system-backup/app.yaml) +- [Backup job](../../../../apps/platform-system/platform-system-backup/values.yaml) + +## Related pages + +- [Backup and recovery](../../architecture/backup-recovery.md) +- [Restic runbook](../../operations/restic-backup-restore.md) diff --git a/docs/wiki/apps/platform-system/victoria-metrics.md b/docs/wiki/apps/platform-system/victoria-metrics.md index 5835e81cf..eaa821629 100644 --- a/docs/wiki/apps/platform-system/victoria-metrics.md +++ b/docs/wiki/apps/platform-system/victoria-metrics.md @@ -3,7 +3,7 @@ Purpose: collect and store one year of metrics for Grafana. Status: current. Reviewed against: `cdb7a398deaa06451737a5a43e895942443e7d3c` and this revision. -One process scrapes explicit targets and serves the private query API. The telemetry claim survives pod replacement. Pool loss starts a new history. Authenticate kubelet scrapes with the dedicated service account and validate its serving certificate against the public kubelet CA for homelab. +One process scrapes explicit targets and serves the private query API. The appdata claim retains samples across pod replacements. Recover the data from the platform-system Restic snapshot after pool loss. Authenticate kubelet scrapes with the dedicated service account and validate its serving certificate against the public kubelet CA for homelab. The query and ingestion API is reachable on the cluster network. The deletion API requires a rotating projected token with its own audience, mounted only diff --git a/docs/wiki/architecture/backup-recovery.md b/docs/wiki/architecture/backup-recovery.md index 061d1bedc..c993f6e5b 100644 --- a/docs/wiki/architecture/backup-recovery.md +++ b/docs/wiki/architecture/backup-recovery.md @@ -5,7 +5,7 @@ Status: current. Reviewed against: `09ff984c2258c4403ef203631fd580106f839e53` an The original Restic repository stays on the retained `dpool/restic` dataset and serves the Kubernetes cluster and existing workstation clients. Separate -CronJobs in home-automation, media and selfhosted read their concrete appdata +CronJobs in home-automation, media, platform-system and selfhosted read their concrete appdata claims and publish namespace snapshots that retain the historical claim paths. An explicitly approved maintenance job copies the repository to its established encrypted B2 destination, then applies local retention on its weekly cadence. diff --git a/docs/wiki/architecture/storage.md b/docs/wiki/architecture/storage.md index 472ba54fa..a4bb153d5 100644 --- a/docs/wiki/architecture/storage.md +++ b/docs/wiki/architecture/storage.md @@ -29,12 +29,17 @@ need independent backups. ## Local telemetry -The non-default [telemetry class](../../../apps/kube-system/zfs-localpv/manifests/zfs-telemetry.storageclass.yaml) -provisions quota-limited filesystems directly under the verified `dpool` pool. -They are outside the recursive appdata snapshots and namespace Restic jobs. -Deleting a telemetry claim releases its dataset. During planned teardown retire -the telemetry claims while CSI is running. After loss of etcd, identify any -orphan by its former PV handle before reclaiming space. +Grafana and VictoriaMetrics use the default `zfs-appdata` class with the other +managed applications. Hourly recursive snapshots cover both databases. The +[platform namespace backup](../apps/platform-system/platform-system-backup.md) +protects them in Restic for recovery after loss of the pool. Size the metrics claim +against observed growth and allow additional pool space for overwritten blocks +held by local snapshots. + +During the migration from the separate telemetry class, each Deployment stops its +old writer and copies the original read-only dataset before starting on the new +claim. Preserve the originals through verification. Complete removal of the +one-time copy init containers before recovering onto a fresh cluster. ## Prepare storage for a Talos install diff --git a/docs/wiki/architecture/uptime.md b/docs/wiki/architecture/uptime.md index c212239b7..01a3701a5 100644 --- a/docs/wiki/architecture/uptime.md +++ b/docs/wiki/architecture/uptime.md @@ -31,8 +31,7 @@ After seven days including a backup cycle, record the monitoring pods' CPU and working sets, active series, ingestion rate, and actual bytes used on the metrics filesystem. Use the observed daily growth to project 13 months, allowing for VictoriaMetrics' monthly partitions and compaction. If the -projection exceeds 80% of the PVC capacity, expand the claim in Git before -cutover. Disk allocation and initial resource requests are sizing inputs, +projection exceeds 80% of the PVC capacity, expand the claim in Git. Disk allocation and initial resource requests are sizing inputs, not measurements. [VictoriaMetrics retention](https://docs.victoriametrics.com/victoriametrics/single-server-victoriametrics/#retention) A failing static scrape continues to generate `up=0`. When a target is removed @@ -60,7 +59,7 @@ five days once production delivery is enabled. owner after Argo sync. Record the verification evidence in the PR. 4. To roll back, revert that cutover PR and verify Gatus owns the hostname and Telegram while Grafana returns to comparison mode. This preserves collected - telemetry. Deleting the telemetry claims deletes their datasets. + telemetry. The appdata StorageClass retains the datasets on PVC deletion. ## Sources diff --git a/docs/wiki/index.md b/docs/wiki/index.md index 745c113a2..5bffb6d30 100644 --- a/docs/wiki/index.md +++ b/docs/wiki/index.md @@ -86,6 +86,7 @@ The app pages describe dependencies and unusual behavior. Read the linked - [Blackbox Exporter](apps/platform-system/blackbox-exporter.md) - [Grafana](apps/platform-system/grafana.md) - [kube-state-metrics](apps/platform-system/kube-state-metrics.md) +- [Platform namespace backup](apps/platform-system/platform-system-backup.md) - [Node Exporter](apps/platform-system/node-exporter.md) - [VictoriaMetrics](apps/platform-system/victoria-metrics.md) - [Gatus](apps/platform-system/gatus.md) diff --git a/docs/wiki/log.md b/docs/wiki/log.md index 08bf95311..bce8bf506 100644 --- a/docs/wiki/log.md +++ b/docs/wiki/log.md @@ -3,6 +3,12 @@ This is the chronological record of source ingests and substantive wiki revisions. Ordinary questions and dependency bumps do not need entries. +## [2026-11-22] revision | Move telemetry to standard appdata and Restic + +The [storage architecture](architecture/storage.md#local-telemetry) and +[backup runbook](operations/restic-backup-restore.md) cover the default class, +snapshot-based backup and platform namespace recovery. + ## [2026-11-22] revision | Stage local Grafana monitoring Documented [parallel probe comparison and cutover](architecture/uptime.md), diff --git a/docs/wiki/operations/restic-backup-restore.md b/docs/wiki/operations/restic-backup-restore.md index 68a80ef48..4f18b2caa 100644 --- a/docs/wiki/operations/restic-backup-restore.md +++ b/docs/wiki/operations/restic-backup-restore.md @@ -16,14 +16,14 @@ Kubernetes clients use `rest:http://restic.selfhosted.svc.cluster.local:8000/`. The workstation endpoint is `rest:http://restic.edgard.org:8000/`. Record the actual workstation snapshot families and known-good IDs in that same repository when testing recovery. Only the Kubernetes maintenance job performs retention. -The three namespace backup CronJobs run daily. +The namespace backup CronJobs run daily. Each mounts its enumerated appdata claims read-only, verifies source mounts and repository identity, and backs up `/data/appdata/` with host `homelab` and tag `appdata`. Claim directories within both these snapshots and older aggregate snapshots use `/data/appdata//`. The shared media and dump filesystems are outside this backup. When adding a persistent application, add its actual claim to the namespace job and verify a snapshot containing it. -These backups read live files. Use native application backups or a +The [platform-system job](../apps/platform-system/platform-system-backup.md) captures SQLite and VictoriaMetrics with their online snapshot mechanisms. Other namespace jobs read live files. Use native application backups or a writer-quiesced copy for database-consistent recovery points. ## Offsite copy and retention @@ -103,7 +103,7 @@ When the time zone field is empty, the controller manager's local time zone applies. [Kubernetes CronJob time zones](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones) ```sh -kubectl get cronjobs -A -o custom-columns='NAMESPACE:.metadata.namespace,JOB:.metadata.name,SCHEDULE:.spec.schedule,ZONE:.spec.timeZone,LAST-SCHEDULE:.status.lastScheduleTime,LAST-SUCCESS:.status.lastSuccessfulTime' | grep -E 'NAMESPACE|home-automation-backup|media-backup|restic-(backup|maintenance)' +kubectl get cronjobs -A -o custom-columns='NAMESPACE:.metadata.namespace,JOB:.metadata.name,SCHEDULE:.spec.schedule,ZONE:.spec.timeZone,LAST-SCHEDULE:.status.lastScheduleTime,LAST-SUCCESS:.status.lastSuccessfulTime' | grep -E 'NAMESPACE|home-automation-backup|media-backup|platform-system-backup|restic-(backup|maintenance)' ``` The schedules and retention counts live in the namespace values linked below. B2 can allow object listings while rejecting downloads with