From bae8e92fb34fa8bb84132c024da914797c0047a6 Mon Sep 17 00:00:00 2001 From: Joel Puig Rubio Date: Fri, 18 Mar 2022 01:34:43 +0100 Subject: [PATCH] Revert "Compress snapshot data as well." This reverts commit 9250cbf36ee0ee6c90cdc2366aa8eff90350be98. It turns out compressing qcow2 images does not preserve snapshots. --- snapshot.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/snapshot.sh b/snapshot.sh index e8c43b0..f352009 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -11,8 +11,3 @@ done echo 'apache is ready .. snapshot in 10 seconds' && sleep 10 echo 'savevm quick' | nc -q1 -w5 127.0.0.1 4445 >/dev/null kill -TERM "$pid" - -# Convert the image one last time, so that the snapshot data will get compressed too. -mv "alpine.qcow2" "alpine_temp.qcow2" -qemu-img convert -c -O qcow2 "alpine_temp.qcow2" "alpine.qcow2" -rm "alpine_temp.qcow2"