Keeping your Raspberry Pi in tip-top condition should be a priority, and luckily, it can be easily done with regular firmware updates and backups. For most Raspberry Pi users, the MicroSD card is the hard drive of their Raspberry Pi. As with any other computer with a hard drive, if the drive dies or gets corrupted, all of that data is lost.
MicroSD cards can occasionally fail or get corrupted. Since we’d rather be safe than sorry, we’ll show you how you can backup your Raspberry Pi’s hard drive.
A backup, in this context, is an exact copy of the entire Raspberry Pi MicroSD card – a process also known as cloning the MicroSD card. The actual backup is stored as an optical disc image file (.iso) of the entire MicroSD card’s contents, which exactly duplicates the operating system, all installed programs, user documents, and user settings from the time of the backup. Complete backups can be stored on either an additional MicroSD card or on an alternative storage medium, such as a PC’s hard drive, NAS, or cloud storage.
Because MicroSD cards can be corrupted or otherwise fail, including the one we created as a safety copy, keeping an .iso file on a different PC, cloud drive, or NAS is the safest option with regard to data security. There is one caveat, however. If the MicroSD cards we use are of a different make and model, the resulting copy may not work, due to subtle differences in sector sizes.
There’s a confusing array of SD cards on the market. Fortunately, the SD Association offers information for all standards, classifications, applications, and labeling for all SD cards (including MicroSD cards).
The following are important for Raspberry Pis:
In general, we also recommend that you choose a reliable well-known brand instead of an unknown cheap product.
When creating a backup, the safest option is to make sure you’re using the same brand, capacity, and classification as the card you’ll be copying. This will minimize the likelihood of errors.
In the following, we concentrate on using simple, user-friendly ways of creating backups. That is, we’ll be using only graphic user interfaces (GUIs), instead of command-line applications to back up your Raspberry Pi to a MicroSD card.
Below, we’ll walk you step by step through backing up your Raspberry Pi with Raspberry Pi OS, Windows, and MacOS. These are some of the materials and software you’ll need to get started.
Below, we’ll show you how to clone the Raspberry Pi’s MicroSD card using the Raspberry Pi OS.
At this point, your files should be copied over from the main SD card to your new one. When it’s done, we can move on to the next step.
If it boots up correctly and all your files are where they should be… well done, you made a working backup copy!
A general warning: Safely power down the Raspberry Pi before removing the MicroSD card! Failure to do so can irreparably corrupt the MicroSD card.
Below, we’ll show you how to back up the Raspberry Pi MicroSD card using Windows.
Next, click on the Read button. The complete drive will now be saved to the chosen destination, which includes the boot record too. The backup operation is finished as soon as the progress bar reaches 100%.
A backup is only as good as its ability to be restored. In this case, it means successfully creating a bootable MicroSD card. In the next steps, we’ll explain how we can make sure the backup is working as it should.
Win32DiskImager is occasionally suffering from some launch problems in Windows 10. Users have reported interference with other programs that are competing for access to the drives being used. The simplicity of the program and the fact that it works makes up for these shortcomings.
We found that disabling programs such as Google Drive and launching Win32DiskImager soon after restarting your PC solves the problem. We used Win32DiskImager for our backup, but we could also use BalenaEtcher, which is available for Linux, MacOS, and Windows. The process for using BalenaEtcher is explained in our instructions for creating backups on a Mac.
Congratulations! You now have a stored image of a working MicroSD card on your computer and cloned a MicroSD card!
Below, we’ll show you how to back up the Raspberry Pi MicroSD card using MacOS.
A backup image alone is useless if we cannot use it to restore function to the backed-up machine.