Prepare (Ubuntu 22.04 Live):
sudo su
apt install pv
Dump disk (or partition) to local file
zstd --fast < /dev/nvme0n1 | pv > laptop.img.zst
Dump disk (or partition) to compressed image over network (NAS)
zstd < /dev/nvme0n1 | pv | ssh [email protected] "cat > /volume1/Backup/laptop.img.zst"
Restore disk image from local file
zstd -dc laptop.img.zst | pv > /dev/nvme0n1
Restore disk image from NAS (untested)
ssh [email protected] "cat /volume1/Backup/laptop.img.zst" | pv | unzstd > /dev/nvme0n1