We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4eccf1 commit 9250cbfCopy full SHA for 9250cbf
snapshot.sh
@@ -11,3 +11,8 @@ done
11
echo 'apache is ready .. snapshot in 10 seconds' && sleep 10
12
echo 'savevm quick' | nc -q1 -w5 127.0.0.1 4445 >/dev/null
13
kill -TERM "$pid"
14
+
15
+# Convert the image one last time, so that the snapshot data will get compressed too.
16
+mv "alpine.qcow2" "alpine_temp.qcow2"
17
+qemu-img convert -c -O qcow2 "alpine_temp.qcow2" "alpine.qcow2"
18
+rm "alpine_temp.qcow2"
0 commit comments