Backup SD Image

From SingletonMillerWiki
Revision as of 12:23, 8 June 2012 by Ajd (Talk | contribs)

Jump to: navigation, search

At some point in your use of the RPi, you're going to think "I've made a whole heap of changes to my RPi build, what if it breaks and I lose everything? How do I stop that happening?".

The answer is 'you can't' hardware fails, power glitches, sudo rm -rf * , human error, all these types of thing can corrupt your precious SD card.

The solution is 'back it up'.

The ideal solution is to create an device image of your current SD card so you can completely rebuilt it rather than starting from a vanilla debian or fedora build.


Creating an SD Image

You've probably already used an image tool to burn your SD card from an process similar to Setup:RPI.


I used the windows tool win32-image-writer. win32-image-writer can also be used to create an image file.

  1. Shutdown you RPI using sudo shutdown -h now .
  2. Remove the power from the micro USB connection
  3. Remove the SD card from the RPi slot.
  4. Insert the SD card into your Windows PC card slot
  5. Run the win32-image-writer utility on the windows PC
  • Select the SD card in the device drop down. If you have more than one device, be careful to select to correct one.
  • Select the Imager Name to write to, make sure you select a *.img filename.
  • Press read button to burn a binary image of the SC card to the file.

The process is slow and the imager file generated will be approximated the same size as the SC card capacity. This is because the image is a binary clone of the SD card. The img file may be zipped to reduce its size after the process is completed.


Coming Soon. Done: but needs writing up.

Regular Backup

If you make regular changes to your RPi its worthwhile spending the time creating these images. Tim spent backing up is always saved in rebuilding.