Skip to content

Commit

Permalink
Revert "Compress snapshot data as well."
Browse files Browse the repository at this point in the history
This reverts commit 9250cbf.

It turns out compressing qcow2 images does not preserve snapshots.
  • Loading branch information
puigru committed Mar 18, 2022
1 parent f497eee commit bae8e92
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit bae8e92

Please sign in to comment.