Skip to content

Shell script to backup and restore a Raspberry Pi image from and to an sdcard

License

Notifications You must be signed in to change notification settings

athoulmuwafiq/rpi-image-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rpi-image-backup

Shell script to backup and restore a Raspberry Pi image from and to an sdcard

Purpose

This script is used to create an as-small-as-possible image dump from an sdcard containing a raspberry pi operating system. It does not use dd to dump the whole sdcard, it clone partition by partition with partclone and save the partition layout and the MBR.

Requirements

The script runs on a linux distribution of your choice. You must have the following tools installed:

  • sfdisk
  • partclone
  • dd
  • blkid
./rpi-image-backup --backup -d /dev/sdb -n scnshift -b ./backup
./rpi-image-backup --restore -d /dev/sdb -n scnshift -b ./backup/scnshift/YYYY-MM-DD

About

Shell script to backup and restore a Raspberry Pi image from and to an sdcard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%