• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Script pishrink reduces the size of backup-images to restore on smaller SD-cards

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 874 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    thgmirror
    last edited by thgmirror Feb 26, 2022, 7:06 PM Feb 26, 2022, 6:33 PM

    It’s a little bit off-topic to MM2, but don’t you juggle with your Raspis, SD-cards and images you made for backup? And sometimes, you want to restore a backup on a smaller SD-Card? I found a solution in the Internet, the script Pishrink reduces the size of images by deleting unused space and that within minutes. After the procedure, a (for example) previous 64GB image will be much smaller and can be copied to a much smaller SD-card (which is done by windiskimager faster than the original size, of course). Pishrink adds a parameter which expands the file-system automatically to the whole space on the SD during restoring.
    You need Linux if you want to give it a try. If you use VirtualBox, please keep in mind that you can’t run Pishrink at the shared-folder, please copy the image into the VM first .
    For LibreELEC and OpenELEC you need to use the switch -s…please use Google for more information.
    You can find it here: https://github.com/Drewsif/PiShrink

    …I’m not the developer!

    A 1 Reply Last reply Feb 27, 2022, 7:51 AM Reply Quote 0
    • A Offline
      Assassins @thgmirror
      last edited by Assassins Feb 27, 2022, 7:52 AM Feb 27, 2022, 7:51 AM

      @thgmirror and i made this to crontab : https://github.com/The-Exterminator/PiShrink-to-Crontab

      And you Can backup the usb disc to.

      T 1 Reply Last reply Feb 28, 2022, 11:46 AM Reply Quote 0
      • T Offline
        thgmirror @Assassins
        last edited by thgmirror Feb 28, 2022, 11:47 AM Feb 28, 2022, 11:46 AM

        @assassins Did you include a zip-process? If the backup is zipped, you can save additionally a lot of space.
        Thomas

        A 1 Reply Last reply Feb 28, 2022, 5:22 PM Reply Quote 0
        • A Offline
          Assassins @thgmirror
          last edited by Feb 28, 2022, 5:22 PM

          @thgmirror said in Script pishrink reduces the size of backup-images to restore on smaller SD-cards:

          @assassins Did you include a zip-process? If the backup is zipped, you can save additionally a lot of space.
          Thomas

          You can read on pishrink, how to set this to .zip, the script i made is to .img

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            4/4
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy