For those of you who use Raspberry Pi’s in your home environment, I’m curious as to what you use them for. What applications are you running on them? Do you have your Pi’s setup in a cluster?
Stopped using my RPi4 ever since Docker broke for some reason and I didn't have the patience to reinstall and set the containers up again and risk it happen again. So I'm using the cloud for now.
I've had a few issues with sd card corruption over the years, so I wrote a script to mount a local ssh server then backup the whole sd card to it as an .img each day.
Then whenever I have an issue (even just my own stupidity) all I've gotta do is pull the sd card and write the latest .img to it.
I had a backup in a USB hdd attached to the Pi. Can't remember why it wasn't resolved with that at the time. Maybe I tried restoring but it didn't solve the problem, not sure.
Single backup? Ie overwriting the previous backup? Maybe you didn't get to restoring it until after it had backed up the broken files.
Multiple backups over days helps. I keep a weeks worth of daily backups in case I miss the issue for a while. The script appends the date to the filename.