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 1.6k 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.
    • thgmirrorT Offline
      thgmirror
      last edited by thgmirror

      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!

      AssassinsA 1 Reply Last reply Reply Quote 0
      • AssassinsA Offline
        Assassins @thgmirror
        last edited by Assassins

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

        And you Can backup the usb disc to.

        thgmirrorT 1 Reply Last reply Reply Quote 0
        • thgmirrorT Offline
          thgmirror @Assassins
          last edited by thgmirror

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

          AssassinsA 1 Reply Last reply Reply Quote 0
          • AssassinsA Offline
            Assassins @thgmirror
            last edited by

            @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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              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