Skip to content

Automatically backup's the raspberry pi OS directly from SD card and shrinks to a smaller image file.

License

Notifications You must be signed in to change notification settings

ammababoi/PiShrink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PiShrink

Backup and shrink your raspberry pi os directly from sd card.

Installation

wget https://raw.githubusercontent.com/ammababoi/PiShrink/main/pishrink && sudo chmod +x pishrink && sudo mv pishrink /usr/bin/ && sudo apt install pv -y

Usage

Know your device name

df -h

now extract the device name

example 1 for list entries like:

/dev/sda1 + /dev/sda2

remove digit at the end

result:

/dev/sda

example 2 for list entries like:

/dev/nvme0n1p6 + /dev/nvme0n1p1

remove p and digit at the end

result:

/dev/nvme0n1

Run command

sudo pishrink device /dev/{your sd card name}

Example

sudo pishrink device /dev/sda

This repository was inspired from

pishrink and shrink

About

Automatically backup's the raspberry pi OS directly from SD card and shrinks to a smaller image file.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages