init
This commit is contained in:
commit
883f31932e
169 changed files with 5676 additions and 0 deletions
16
scripts/vm/snapshot.sh
Executable file
16
scripts/vm/snapshot.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue