Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

pishrink is a useful tool to reduce the size of dd images to it's minimum. When the image is booted the image expands the root partition to it's possible maximum size. You can shrink an image created by raspiBackup by using the helper script Following paragraph describes in detail how to configure raspiBackup to shrink dd backup images with pishrink.



First install and configure raspiBackup. See this page for details. When you managed to create a dd backup download from github


sudo mv ./ /usr/local/bin

sudo chmod +x /usr/local/bin/

Now download and install pishrink


sudo mv ./ /usr/local/bin

sudo chmod +x /usr/local/bin/


Then activate /usr/local/bin/

1) Change


so it defines the used backup mount point.

2) Change

#sudo pishrink

and delete the leading #


Now test



Finally change /etc/cron.d/raspiBackup

00 05 * * 0 root /usr/local/bin/


00 05 * * 0 root /usr/local/bin/

That's it :-)

Add comment


Spam comments are purged and not published. Review is done manually and therefore it usually takes between some hours and one day until a comment will be published.