[LINUX] Raspberry Pi backup

1. Contents of this article

About the backup method of the SD card used for Raspberry Pi

I will introduce one method of ~~ 2 ~~. The articles that I referred to are listed in the related links at the bottom of the page.

Method merit デmerit
How to back up the entire SD card Easy backup method Reading and writing to the free space in the SD card occurs, and the backup time and storage efficiency are poor. Also, the life of the SD card tends to be shortened.
How to back up only the space you need Good backup time and storage efficiency Backup procedure is a little complicated (requires basic knowledge of file system)

1-1. Usage environment

1-1-1. How to back up the entire SD card

1-1-2. How to back up only the required area

2. Background

I decided to leave a backup method when working with Raspberry Pi in the article. HDDs and SSDs are becoming cheaper, so if you have a size of about 32GB/64GB, you shouldn't have any trouble backing up the entire space, but since you shouldn't back up the free space, only the necessary space I will also introduce the backup method of.

3. SD card backup

3-1. How to back up the entire SD card

  1. Start Win32 Disc Imager
  2. Insert the SD card into your PC
  3. Specify the file name to back up (ImageFile field)
  4. Click the "Read" button to perform the backup

To write the backed up file to the SD card, click the "Write" button.

3-2. How to back up only the required area

  1. Mount the SD card to back up
$ sudo mkdir /mnt/d
$ sudo mount drvfs D: /mnt/d

★ I can mount the drive, but I can only see/boot, so I gave up.

3. In the end

I introduced the backup method of the SD card used for Raspberry Pi. I didn't have a Linux environment at hand and tried to back up with WSL, but I investigated but gave up because I could not solve the problem that the Linux file system could not be seen. If a solution is found or the Linux environment is set up, I would like to add a method to back up only the necessary area.

The surveyed content (article) is posted on the related link.

4. Related links

Recommended Posts

Raspberry Pi backup
What is Raspberry Pi?
GPGPU with Raspberry Pi
pigpio on Raspberry pi
Raspberry Pi video camera
Raspberry Pi Bad Knowledge
Let's do Raspberry Pi?
DigitalSignage with Raspberry Pi
Raspberry Pi 4 setup memo
Cython on Raspberry Pi
Raspberry Pi system monitoring
Introduced python3-OpenCV3 to Raspberry Pi
Raspberry Pi 4B initial setting
Mutter plants with Raspberry Pi
Install Raspberry Pi OS (Raspbian)
I talked to Raspberry Pi
Introducing PyMySQL to raspberry pi3
Raspberry Pi + Python + OpenGL memo
Raspbian initial settings (Raspberry Pi 4)
raspberry pi 1 model b, python
Introduced pyenv on Raspberry Pi
03. Pi
Use NeoPixel on Raspberry Pi
Install OpenCV4 on Raspberry Pi 3
Install TensorFlow 1.15.0 on Raspberry Pi
[Raspberry Pi] Stepping motor control with Raspberry Pi
Testing uart communication on Raspberry Pi
raspberry pi 1 model b, node-red part 17
Servo motor control with Raspberry Pi
USB over ethernet using Raspberry pi
MQTT on Raspberry Pi and Mac
raspberry pi 4 centos7 install on docker
Install ghoto2 on Raspberry Pi (memo)
Output from Raspberry Pi to Line
OS setup with Raspberry Pi Imager
Raspberry pi initial setting (for myself)
Try using ArUco on Raspberry Pi
Try L Chika with raspberry pi
OpenCV installation procedure on Raspberry Pi
VPN server construction with Raspberry Pi
Try moving 3 servos with Raspberry Pi
Power on / off Raspberry pi on Arduino
Detect switch status on Raspberry Pi 3
Install OpenMedia Vault 5 on Raspberry Pi 4
Using a webcam with Raspberry Pi
L Chika on Raspberry Pi C #
[Raspberry Pi] Changed Python default to Python3
Build wxPython on Ubuntu 20.04 on raspberry pi 4
Put ROS melodic in Raspberry Pi 4 / Buster
Measure SIM signal strength with Raspberry Pi
Connect two USB cameras to Raspberry Pi 4
[Raspberry Pi] Add a thermometer and a hygrometer
USB boot on Raspberry Pi 4 Model B
Hello World with Raspberry Pi + Minecraft Pi Edition
"Honwaka Notification Lamp" on Raspberry Pi Part 1
Build a Tensorflow environment with Raspberry Pi [2020]
Enable UART + serial communication on Raspberry Pi
Make Raspberry Pi speak Japanese using OpenJtalk
Adafruit Python BluefruitLE works on Raspberry Pi.
Get BITCOIN LTP information with Raspberry PI
Accelerate Deep Learning on Raspberry Pi 4 CPU