Notifications
Clear all

How to Backup a Raspberry Pi  

  RSS
WiganPI
(@stuart)
Member Admin

How to Backup a Raspberry Pi

Once you have fully setup your raspberry pi, it can be a good idea to make a backup of the raspberry pi’s SD card in case anything happens to it. This will work for all raspberry pi models and will require a windows PC with a SD card reader that matches the type of SD card in your raspberry pi.

First, start by installing Win32DiskImager, and then follow the ‘Creating a Backup of the Pi’ steps to create the backup. If you need to use the backup, follow the ‘Restoring the Pi with a Backup’ steps.

Installing the Program
1. Download ‘Win32DiskImager’ from:
https://sourceforge.net/projects/win32diskimager/files/latest/download

2. Right click on the download file and select ‘Run as administrator’, then click yes to the UAC
prompt.

3. Open the downloaded file and follow the installer instructions, then, unselect the ‘View
README.txt’ and ‘Launch Win32DiskImager’ options and click finish.

Creating a Backup of the Pi

The following instructions will show you how to create a backup of the Pi and save it to your PC.

1. Plug your SD card into your PC (making sure to shut the Pi down first) and check which drive it gets mounted to. In my case it is drive E:

2. Open Win32DiskImager by using the shortcut on your desktop and click yes to the UAC prompt. Click the file button to choose a location for the backup file.

3. Select a location to save the backup but make sure to add ‘.img’ to the end of the file name so Windows will recognize the file.

4. Select the drive that you just located under the ‘Device’ dropdown box in Win32DiskImager.

5. Click ‘Read’.

6. You should get a ‘Read Successful’ dialog when completed.

7. Done! You can now plug your SD card back into your Pi and power it on.

Restoring the Pi with a Backup

The following instructions will show you how to use the backup of the Pi that you made to restore it.

You should only restore the Pi with the backup if you are having problems with the Pi.

1. Plug your SD card into your PC (making sure to shut the Pi down first) and check which drive it gets mounted to. In my case it is drive E:

2. Open Win32DiskImager by using the shortcut on your desktop and click yes to the UAC prompt. Click the file button to select the backup file that you created.

3. Select the backup file that you created.

4. Select the drive that you just located under the ‘Device’ dropdown box in Win32DiskImager.

Make sure to double check this because you don’t want to select the wrong device as you could end up restoring the backup to the wrong device which could cause it to stop working properly.

5. Click ‘Write’

6. Click ‘Yes’ as long as you are sure that you have selected the correct Device.

7. You should get a ‘Write Successful’ dialog when completed.

8. Done! You can now plug your SD card back into your Pi and power it on.

Quote
Posted : 28/12/2017 11:03
Share:
%d bloggers like this: