From e74f4208f51deb770d7834ad56144308d0e048af Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Tue, 16 Jun 2026 14:26:03 +0000 Subject: [PATCH] t3-backup-state: retention 14 -> 6 (bound devvm root fs) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wizard's state.sqlite grew to ~1.1GB and the new gated nightly tracker adds a pre-bump snapshot per bump on top of this daily one; 14 x ~1.1GB would fill the devvm root fs (was trending to ~16GB of wizard backups on a disk with ~9GB free). 6 is ample — rollback only ever needs the most recent pre-bump backup. Co-Authored-By: Claude Opus 4.8 --- scripts/t3-backup-state.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/t3-backup-state.sh b/scripts/t3-backup-state.sh index 7ade2892..7d9f4cd1 100644 --- a/scripts/t3-backup-state.sh +++ b/scripts/t3-backup-state.sh @@ -9,7 +9,11 @@ # WAL/-shm files keep their owner and the running t3-serve is never perturbed. set -uo pipefail DEST="${T3_BACKUP_DEST:-/var/backups/t3-state}" -KEEP="${T3_BACKUP_KEEP:-14}" +# 6 (was 14): wizard's state.sqlite grew to ~1.1GB, and the gated nightly tracker +# adds a pre-bump snapshot per bump on top of this daily one — 14 x ~1.1GB would +# fill the devvm root fs. 6 is ample (rollback only ever needs the most recent +# pre-bump backup). Bump per user via T3_BACKUP_KEEP if a DB is small. +KEEP="${T3_BACKUP_KEEP:-6}" MAP=/etc/ttyd-user-map LOG() { logger -t t3-backup-state "$*"; echo "t3-backup-state: $*"; }