The default option for running an operating system on a Raspberry Pi is using a microSD card. In most cases this is adequate; a few years ago, SD cards were prone to data corruption when used with a Raspberry Pi, but it’s less of an issue now.
Better card error correction and an operating system more optimized for SD storage has reduced the likelihood of corrupt cards. But it’s a good idea to back up your Raspberry Pi SD card.
What You Need to Back up a Raspberry Pi on Windows
Before starting, ensure your computer has enough storage space for the backup.
If you’re using Windows for your main PC, a couple of tools are available for backing up your Raspberry Pi.
Balena Etcher
Win32 Disk Imager
Both do a good job of backing up an SD card, so it’s really a matter of preference.
The steps below will explain how to clone your Raspberry Pi SD card and make a backup with both Etcher and Win32 Disk Imager.
What Type of Backup Can You Make?
Backing up a Raspberry Pi’s SD card lets you restore the operating system and all your apps and user data. This might be important for an electronics project, a coding project, or just as good back up practice.
Both SD card copying tools above will create an IMG file of your Raspberry Pi’s SD card. It’s essentially a direct copy of the data, or a clone, which is why the term is used interchangeably with “back up” in this context.
The IMG can be stored on your PC, on another device, or even copied direct to another microSD card.
Creating this backup will save time in the future, both when installing a fresh Raspberry Pi system and when installing apps and utilities
.
Limitations of Raspberry Pi Backups
Providing there is enough storage space on the target device, the Raspberry Pi’s SD card can be backed up.
How long it takes to write the Raspberry Pi disk image to the target device will depend on various factors. These include the speed of the PC, the quality of the card reader, and the speed of the flash storage on the microSD card.
Read on to learn how to clone your Raspberry Pi microSD card on a Windows PC or laptop. Before starting, power down your Raspberry Pi and eject the SD card.
How to Clone Your Raspberry Pi SD Card With Etcher
To clone your Raspberry Pi SD card with the multi-platform Etcher tool, start by downloading the app.
To make a back-up of the Raspberry Pi’s microSD card, first insert it into your computer’s card reader. Then, ensure you have a target device connected.
Using a disk partition that is not a removable device or dedicated partition will erase all data on the target.
Etcher is a fully-featured flash drive writing and copying tool, and getting the steps wrong can lead to a loss of data. To clone your Raspberry Pi SD card:
Launch Etcher
SelectClone drive
In Select sourcehighlight the SD cardas the source drive
ClickSelect 1to proceed
InSelect targetchoose a destination - this should be a second SD card, USB flash device, or a dedicated partition on your computer’s SSD or HDD
ClickSelect 1with the destination selected (additional SD cards can be written to simultaneously if inserted)
ClickFlashto start cloning
The Etcher app will notify you when the process is complete, and you can eject the card.
Restore a Cloned SD Card Disk Image in Etcher
Creating a new SD card for your Raspberry Pi with the backed up data is simple.
Launch Etcher
SelectFlash from file
Browse to the cloned IMG file
ClickSelect
In Select target,highlight the target microSD cardand clickSelect 1
ClickFlash
Again, a notification will inform you when the process is complete. After safely ejecting the SD card, you should be able to boot it in your Raspberry Pi
Backup Your Raspberry Pi SD Card With Win32 Disk Imager
Win32 Disk Imager is SD card cloning software for Windows. It runs on Windows 10 and 11 (and is suitable for Windows 7 and 8.x).
With the Raspberry Pi’s SD card inserted in your PC’s card reader and the target destination prepared, you’re ready to start.
Unlike Etcher, Win32 Disk Imager creates an IMG file in a specific location on your PC without deleting data. This makes it the preferred option for creating a backup of your Raspberry Pi SD card.
Launch Win32 Disk Imager
UnderImage File, enter a file path and filename (this must end.IMG)
Click theDevicedrop-down to select the microSD card’s drive letter
ClickRead
The progress bar will fill up as the data is written from the microSD card to the target IMG file. A notification will pop up when the process is complete.
Restore a Raspberry Pi Backup Made in Win32 Disk Imager
If you need to restore the IMG file to a new (or formatted) microSD card:
Ensure the IMG file is on a device attached to your PC
Open Win32 Disk Imager
UnderImage File, browse to the IMG file
UnderDevice, select the target microSD card
ClickWrite
Wait while the cloned IMG file is written to the microSD card
Once this is complete, safely eject your SD card, insert it in your Raspberry Pi, and boot it up.
Making a Backup of Your Raspberry Pi Is Simple
It has become much easier over the past few years to use a Raspberry Pi reliably. Thanks to tools like Etcher and Win32 Disk Image, it’s simple to back up a Raspberry Pi’s SD card to your Windows PC or another device.
Regardless of whether your Pi’s SD card has a desktop or server OS, it can be backed up. As with any backing up procedure, as long as the target drive is big enough, the data can be archived.
With these tools, the Raspberry Pi SD card is cloned as a disk image. This IMG file can then be written to another SD card of the same or greater size.
No comments:
Post a Comment