Pi.Hole SD Backup questions

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.

You are probably posting in the wrong forum. :wink:

Your question is not related to Pi-hole, but rather specific to your hardware and to the tools you use for sd card backups.

That's not to say there haven't been other users discussing this in our forums - you can always use the search function for similar topics.

Meanwhile, I'm moving this to Community Help.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.