Help | Disaster Recovery - markbaaijens/rpmusicserver GitHub Wiki
Disaster can come from anywhere: a broken Pi (very unlikely), a corrupt SD-card or a data-disk which gets broken. In each case, the solution within RPMS is very simple
Broken Pi (very unlikely)
Steps to get back on track:
- obtain a new Pi which meets the system requirements (see above)
- swap the SD-card from the defect Pi
- connect your data-disk
- boot up the new Pi and you are ready to go
You may possibly need to reconnect player(s), see details in Troubleshooting
Corrupt SD-card
Steps to get back on track:
-
if the hardware is damaged, obtain a new card, otherwise, use the same card
-
burn and install RPMS onto the card (see above for instructions)
-
now you are ready to go
You may possibly need to reconnect player(s), see details in Troubleshooting
Data-disk crash
In case of a server-based backup, you are 'lucky': b/c the backup-disk is an exact copy aka mirror of the data-disk and even of the same disk-type (ext4), you can simply swap them once the data-disk has been crashed.
Steps to get back on track:
- shut down the Pi
- unplug the usbbackup-disk from the Pi
- unplug the usbdata-disk from the Pi
- plug the usbbackup-disk into your local machine
- rename the label of the backup-disk from
usbbackuptousbdata- for renaming the disk, use your favorite disk-tool (Disks, gparted, etc.)
- unplug the newly renamed disk (which is now
usbdata) from your local machine - connect the renamed disk to the Pi
- boot up the Pi
- check if everything is working correctly (smb, transcoding, lms, etc.)
By now, the backup-disk has been automagically changed into a data-disk and you can go on from the last backup that you made.
Note. As a bonus, you might rename the original usbdata-disk from usbdata to usbbackup and plug it into the Pi. Then you can do your backups again, as usual.
In case of a remote backup, you have more work to do:
- reformat a (new) disk for usbdata-usage (see instructions above)
- copy all data from the remote backup location to the data-disk under '/user'
- unzip rpms-system.zip (this file is present in the root of the data-backup)
- copy the contents of rpms-system.zip to /rpms
- attach the newly formatted and populated data-disk to the Pi
- reboot and you are back in business
Remember to make a backup to a new backup-disk immediately!