How to make a backup of a Raspberry Pi using a disk imager

How to Back Up your Raspberry Pi
Published: by Renier Delport
Last updated: 4 June 2017
Collection(s): Raspberry Pi

After doing some tinkering a Raspberry Pi operating system, it might be a good idea to back it up from time-to-time. How to make a backup of your Raspberry Pi using a disk imager will help you with that.

Pros & cons of using a disk imager to make backups

By using disk imagers to make backups of a Raspberry Pi operating system there are only a few basic steps, it is very simple and it will work with any Raspberry Pi operating system. Disk imagers makes a cloned copy, bit-by-bit and is a very accurate way of storing data on a different medium for later use.

On the down side, this method does come with some flaws. Apart from being manual, the additional hardware and an additional stand-alone/separate PC that is required, the retrieval of a backup image needs a larger sized SD card. Let’s call it the “ever expanding image problem” where an 8Gb SD card will need a 16Gb card and a 16Gb will need a 32Gb card etc., etc.

Compared to other ways of making backups, this process is quite SD card intensive from a reading perspective. It should therefor be limited to as needed or once a week, meaning the risk for data loss is greater (compared to other processes which is less intensive and can be done more frequently.) From all the Raspberry Pi backup options available, making cloned copies also takes the longest to complete.

Background

As discussed on the basics of installing a new operating system for your Raspberry Pi, the Raspberry Pi needs some sort of an operating system installed from an .img file to an SD card. This process is basically the reversal of that. This will show how to create a backup copy of the Raspberry Pi operating system as an .img file.

Before starting – requirements

Apart from a SD card reader and the working SD card, the following will also be required:

  • A PC already running an operating system (I will be using Microsoft Windows 7) with enough HDD space (attached) to store one or two instances of your Raspberry Pi operating system image. (I recommend at least 3x the size of the SD card being backed up.)
  • Win32DiskImager downloaded and installed onto this PC. You can also choose a different disk imager depending on your own operating system.

Using Win32DiskImager to make a backup of a Raspberry Pi

  • Remove the SD card from the (switched) off Raspberry Pi, pop it into a SD card reader and then pop it into the PC.
Using Win32DiskImager to make a backup of a Raspberry Pi
Win32DiskImager is a plain and very simple little program that can read and write to and from .img files.
  • To create an .img from a SD card, open Win32DiskImager and use the folder button and browse to the directory on your HDD where you want to save the .img file too.
  • Type in the complete file name to save the image as (include the .img extension).
  • Make sure the correct drive letter of the SD card is selected on the Device drop down menu.
  • Press the Read button (vs. Write button).

That’s it! Simple.

Other ways to backup a Raspberry Pi

Try one of Lynda.com’s online software and skills learning courses
Try one of Lynda.com’s online software and skills learning courses
Improve your knowledge on anything from programming to business skills with Lynda.com’s huge range of professional video courses.
23 February 2018

More home network related posts

Save, share, comment & Disqus

Use the buttons below, on the left or the bottom of this page to share this post. Your comment is important, but don't be a shit. Keep it constructive and polite.
Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInPin on PinterestShare on StumbleUpon

Comment via Facebook

Disqus

About the author
Renier finds himself busy with creative web design and his websites, motorcycling, photoshopping, micro electronics, non-commercialised music, superhero movies, badass series and many other things that are not interesting to most people.