Hello,
I'm backing up my Pi-Hole live system via dd
image to the NAS.
sudo dd if=/dev/mmcblk0 | pv -s 15G - | ssh someuser@theNAS -P 22 dd of=/volume1/folder/filename.img
This created a image of the 16 GB SD-Card which is 15.9 GB in Size.
Now at restoring to another replacement 16 GB SD-Card, the SD image writer wont write it, because the image file is too big.
The new SD card is only 15.4 GB in size so I cant flash the image.
- What am I doing wrong?
- Maybe some know how to change
dd
parameters to backup only used space containing data to .img file and skip the unused space? So I would end up with a 6GB .img file, which about the size of my pi.hole's used disk. data.