User Rating: 3 / 5

Star ActiveStar ActiveStar ActiveStar 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


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

*** Note ***

Comments are welcome. But in order to reject spam posts please consider following rules:
  1. Comments with string http are rejected with message You have no rights to use this tag
  2. All comments are reviewed by hand and thus it usually takes one day until a comment will be published.