I previously searched for related content on the forum, but ultimately ended up re-flashing the SD card and reinstalling from scratch. I would like to know how to handle this situation if it happens again.
Here is my situation:
SBC model is NanoPi R2S
I have dietpi backup on SD card
Unable to connect to SBC via HDMI, serial port, or LAN
SD card storage can be accessed by other devices
Is it possible to return to normal under existing conditions?
Is there any way to copy the iproute2 or other missing file to SD card?
Can the existing Dietpi shell script be used on other devices to restore the contents of an SD card from a backup file?
Is it effective to create a script file in the directory /var/lib/dietpi/postboot.d and execute dietpi-backup -1?
#1 should be feasible. It is supported ootb by our scripts and initial setup process.
#2 should be feasible. creating an image regularly would need to be setup manually. Actually, we don’t have a tool who would create such images on a running system.
#3 theoretically it might work if you manually run/configure rsync for this.