Add 'save': the closing step for any change

save = snapshot --update + start, and falls back to a first-time snapshot
when no baseline exists yet. On the qemu platform it folds the working
overlays into the base images and brings the lab back up; on proxmox it
re-templates.

Documented as the rule it is: every deliberate change to the lab ends with
save, so reset always returns to the state you meant to freeze.
This commit is contained in:
2026-10-24 02:13:18 -04:00
parent 9ba0ca98ac
commit b9bc0eb079
6 changed files with 38 additions and 4 deletions
+2
View File
@@ -214,6 +214,8 @@ backend_snapshot() {
ok "$(printf '%-6s baseline frozen (%s)' "$name" "$(du -h "$base" | cut -f1)")"
}
backend_has_baseline() { [[ -f $(qemu_base "$1") ]]; }
backend_reset() {
local name=$1
local base overlay