For industrial raspi, the procedure is a bit more complicated, but it is convenient to backup with the dd command and compress with PiShrink to shorten the write time. For general Pi 4 and Pi 5, the dd command is used to backup the entire system as an image file, as in this case. Please refer to the following.