Use stronger compression for cold storage backups.
Section: Images and Clones
Compress an image with xz
bash
bash
xz -T0 disk.imgExplanation
Use stronger compression for cold storage backups.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Images and Clones
Compress a raw disk image
Compress large raw images for storage or transfer.
Inspect a virtual disk image
Show image format, virtual size, and backing file info.
Convert a virtual disk image
Convert between raw, qcow2, and other image formats.
Compare two images byte-for-byte
Quick equality check for cloned images of the same size.
Write a raw image back to disk
Restore a disk image onto a target device.