* 2026-04-09 09:29:42+0000, Turritopsis Dohrnii Teo En Ming wrote: > # dd if=/dev/mmcblk0 bs=4M status=progress | gzip -1 > /backup/emmc.img.gz
That is fine.
I think we should ditch "dd" and use a modern program like "pv" for data
transfer monitoring. It has good defaults and progress output so usually
options are not needed.
pv /dev/whatever | gzip >file.gz
"pv" uses a buffer size that is a multiple of block size of the
filesystem.
> # gunzip -c emmc.img.gz | dd of=/dev/mmcblk0 bs=4M status=progress conv=fsync
Or with "pv":
gzip -dc file.gz | pv --sync --output /dev/whatever -
--
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: DD3B8E8ABD28B98176E6A7CCCC9A5E615FCC1D93
/ old key: 6965F03973F0D4CA22B9410F0F2CAE0E07608462
signature.asc
Description: PGP signature

