SD Card Backup - Raspberry Pi

From ETCwiki
Jump to navigationJump to search

This is a command that lets you make a COMPLETE image of any raspberry Pi sd card. You will need to do this from a linux PC (not the raspberry pi) so you will need to shut down your pi for a bit.

  • Stick the Pi SD card into your main PC running linux
  • make sure you have free space enough to backup the entire size of the card
  • this will put the image in your home directory in the file rpifull.img
  • this backs up the boot loader, and every 1 and 0 on the card
  • find the name/location of your card (/dev/sdc) and replace below. Use the "df" command
umount /dev/sdc1
umount /dev/sdc2
dd if=/dev/sdc bs=1M of=~/rpifull.img

You can now zip this file if you want to reduce disk space used by it:

bzip2 -k9 ~/rpifull.img