It is a good idea to create an image of your system to flash it back on a fresh SD card if needed. In fact, corruption of cards can happen, so it is recommended to keep an image ready to be transferred to economize some time.
On a Linux system, plug the SD card and run the following command to create a raw copy:
With `/dev/mmcblk0` the name of the SD card. Feel free to change the name of the image.
By default, dd will make a bit-by-bit image of the SD card, even if a major part is filled with zeroes. To reduce the image size, we can use [PiShrink](https://github.com/Drewsif/PiShrink) to reduce its size: