Earlier I was using fsarchiver to create compressed partition image. Due to some weird behavior I am choosing to replace it with
However, I like how fsarchiver compressed with zstd.
So, I studied,
- How to make a disk image and restore from it later?
- Using DD for disk cloning
- Making full disk image with DD
- compressing dd backup on the fly
- How do you monitor the progress of dd?
What these essentially say is, I have to use the following command to backup
dd if=/dev/sda2 status=progress | gzip -c > /media/mint/Data/_Fsarchiver/MintV1.img.gz
And the following command to restore
gunzip -c /media/mint/Data/_Fsarchiver/MintV1.img.gz | dd of=/dev/sda2 status=progress
Now I want to replace
gzip -c &
gunzip -c with
The commands I came up with are
sudo dd if=/dev/sda2 status=progress | zstd -16vT6 > /media/mint/Data/_Fsarchiver/MintV1.zst
zstd -vdcfT6 /media/mint/Data/_Fsarchiver/MintV1.zst | dd of=/dev/sda2 status=progress
Is it safe to try these commands or am I doing something wrong?