bugzilla/scripts/vm/snapshot.sh
Tiara Rodney 883f31932e
init
2026-03-14 05:38:45 +01:00

16 lines
382 B
Bash
Executable file

#!/bin/sh
# Snapshot both VM volumes. Stops VMs first.
#
# Usage: scripts/vm/snapshot.sh <label>
set -eu
. "$(dirname "$0")/env.sh"
label="${1:?Usage: snapshot.sh <label>}"
"$(dirname "$0")/stop.sh"
echo "==> Snapshotting '$label'"
"$QEMU_VM" volume snapshot "$PROXY_VM" "$label"
"$QEMU_VM" volume snapshot "$IDP_VM" "$label"
echo "==> Done. Restart with: scripts/vm/start.sh"