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

Online micro-electronic components, consumables & accessories
Buy great value for money micro-electronic components online from BangGood.com. Huge Black Friday deals!
13 December 2017 | 1 029 532 reader(s) found this helpful so far.
Sharing a Raspberry Pi Directory on a Local Area Network
Sharing a Raspberry Pi directory on a local area network
See #howto share a #RaspberryPi directory on a LAN...
18 April 2016 | Updated 4 June 2017 | | 5 reader(s) found this helpful so far.

More home network related posts

Communicating between 2 Raspberry Pi's using sshpass
Communicating between 2 Raspberry Pis using sshpass
See #howto communicate between two #RaspberryPi s using sshpass...
10 September 2016 | Updated 15 July 2017 | | 4 reader(s) found this helpful so far.
Understanding common network protocols
Understanding some common network protocols
Read more about some common network protocols... #RaspberryPi #HomeAutomation
7 September 2016 | Updated 17 November 2017 | | 3 reader(s) found this helpful so far.
Using WinSCP to Connect to a Raspberry Pi
Using WinSCP to connect to a Raspberry Pi
#Howto use #WinSCP to connect remotely to a #RaspberryPi
1 June 2016 | | 5 reader(s) found this helpful so far.
Sharing a Raspberry Pi Directory on a Local Area Network
Sharing a Raspberry Pi directory on a local area network
See #howto share a #RaspberryPi directory on a LAN...
18 April 2016 | Updated 4 June 2017 | | 5 reader(s) found this helpful so far.
Using the Raspberry Pi as a home web server
Using the Raspberry Pi as a home web server
See #howto use a #RaspberryPi as a home #webserver... #HomeAutomation
18 January 2016 | Updated 19 November 2017 | | 3 reader(s) found this helpful so far.

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 StumbleUponShare on Tumblr

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.