I run my Raspberry Pi with a SD card, which are known to die faster than ssd disks. Therefor I’m looking for a backup & restore strategy to backup the whole system. My idea:
Shutdown Raspi and clone the sd card on a linux system - i.e. with dd.
Do scheduled backups of the / folder on the Raspi. Exclude
Here the script I use to do the backups.
On the linux system write the full image to the new SD card.
On the linux system recover the latest restic backup to the new SD card.
This seems to work except that I see nearly 20.000 “Symlink: … file exists” errors.
How could I get rid of those?
Does someone have a better strategy to recover a system to get a bootable disk?
Thanks for hints or ideas.