sudo dd if=source of=dest status=progress
sudo kill -USR1 $(pgrep ^dd)
watch -n5 'sudo kill -USR1 $(pgrap ^dd)'
Requires pzstd, pixz, or pigz, depending of the type of compression used.
sudo dd if=/dev/DEVICE bs=1M status=progress | pzstd > IMAGE.img.zst
DEVICE represents the device name, e.g. sda or mmcblk0, and IMAGE is the desired name to call the compressed image.
Requires pzstd, pixz or pigz, depending of the type of compression used.
sudo sh -c "pzstd -d < IMAGE.img.zst > /dev/DEVICE" && sync
DEVICE represents the device name, e.g. sda or mmcblk0, and IMAGE is the desired name to call the compressed image.