Browse Tag: backup image raspberry pi

How to backup the Raspberry Pi SD Card using Linux

Let’s face it, your hard drive will eventually fail and so will any storage device you own, especially something small like your Raspberry Pi SD card which not only can become corrupted but also lost if you use it outside your home transferring files at different locations. I am a big advocate of creating backups of your Raspberry Pi’s SD Card and create an image of the SD card that you can store on Google Drive or Dropbox.

I recently was using my Raspberry Pi as a server and had a ton of data and hours of software configurations that I have been using my Raspberry Pi for and during a thunderstorm the power got cut out, when power was restored and I booted up my server everything was corrupted and all my data was lost. If I had only created an image I would be able to insert a new SD card into my computer and restore my previously saved image and be back in business in 5 minutes.

Since all my computers in the house are running Linux I will be showing you how to create a backup image of your Raspberry Pi’s SD card and restoring your image back onto the SD card. The distro of Linux I am running is Linux Mint, which is a Debian Linux flavor. The steps for creating your Raspberry Pi image on Linux will work on all distributions of Linux since the command I will be using is a standard Linux command.

Objective

To create a backup image of the Raspberry Pi SD Card

Material

You will need the following:

Instructions for Backing up the Raspberry Pi SD Card

Lets start off by opening a terminal window on your Linux computer. We will be able to do everything through the terminal window. Don’t put in your Raspberry Pi’s SD card into your computer yet, before putting in the SD card run the following command to display the amount of disk space available on our system. We really don’t care about the available disk space, what we will be looking for is all the partitions¬†on our hard drive and we will be making note of what new partitions show up when we insert our Raspberry Pi SD card. Run the following command: Continue Reading