init
This commit is contained in:
commit
883f31932e
169 changed files with 5676 additions and 0 deletions
20
scripts/vm/restore.sh
Executable file
20
scripts/vm/restore.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
# Restore both VM volumes to a snapshot and start them.
|
||||
#
|
||||
# Usage: scripts/vm/restore.sh <label>
|
||||
# e.g. scripts/vm/restore.sh initialized
|
||||
set -eu
|
||||
. "$(dirname "$0")/env.sh"
|
||||
|
||||
label="${1:?Usage: restore.sh <label>}"
|
||||
|
||||
"$(dirname "$0")/stop.sh"
|
||||
|
||||
echo "==> Restoring '$label'"
|
||||
"$QEMU_VM" volume restore "$PROXY_VM" "$label"
|
||||
"$QEMU_VM" volume restore "$IDP_VM" "$label"
|
||||
|
||||
echo "==> Clearing stale SSH host keys"
|
||||
clear_host_keys
|
||||
|
||||
exec "$(dirname "$0")/start.sh"
|
||||
Loading…
Add table
Add a link
Reference in a new issue