From aa7e55d5588387d502dcb40fc8094d52103655be Mon Sep 17 00:00:00 2001 From: Simone Date: Wed, 22 Jul 2026 14:09:10 +0200 Subject: [PATCH] chore(backup): keep one generation, exclude the retired WinBuildTest Backups had grown to 195 GB -- half the disk, which was at 94% -- because retention run covers only artifacts, logs and IP leases, none of which weigh anything here. The three generations were byte-identical per template: the templates rarely change, so the extra copies bought nothing. WinBuildTest alone cost 26 GB per generation and has been unused since 2026-06-10. --- deploy/systemd/ci-backup-template.service | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy/systemd/ci-backup-template.service b/deploy/systemd/ci-backup-template.service index 460758a..7dbcc48 100644 --- a/deploy/systemd/ci-backup-template.service +++ b/deploy/systemd/ci-backup-template.service @@ -8,7 +8,11 @@ Type=oneshot User=root EnvironmentFile=/etc/ci/environment WorkingDirectory=/opt/ci/local-ci-cd-system -ExecStart=/opt/ci/venv/bin/python -m ci_orchestrator template backup --all-templates +# --keep-count 1: three generations of Windows templates cost ~195 GB and the +# archives were byte-identical between runs (the templates rarely change), so +# the extra generations bought nothing. --exclude WinBuildTest: retired test +# template, ~26 GB per generation. +ExecStart=/opt/ci/venv/bin/python -m ci_orchestrator template backup --all-templates --keep-count 1 --exclude WinBuildTest # Safety net: bring act-runner.service back up on any exit path (success, # failure, signal). The Python `finally` block can be skipped if the # service is killed mid-run, and a runner left stopped by a killed