This tutorial covers how to backup the userdata partition of your Batocera machine to a Synology NAS. This allows you to recover your data easily to a previous state in case of data loss.
Since the release of Synology Active Backup For Business, backing up a Batocera system via rsync became much more convenient than ever before. Please check if your NAS model supports Synology ABB on this link.
<my_Batocera_IPAddress_or_hostname> rsync shell mode via SSH 22) root By password (or alternatively By SSH key if you have set up password-less_authentication from your NAS to your Batocera instance before) <myBatoceraRootPassword> Click on Done
In case you are restoring your data based on a fresh Batocera installation, before restoring, make sure bluetooth service is stopped by executing the following command on your Batocera system: /etc/init.d/S32bluetooth stop. This makes sure your bluetooth controllers are being recognized and working as before. If you don't do this, then you have to set up your bluetooth controllers from scratch again.
If you want to restore a single file or a full backup, do so by using the Active Backup For Business (Recovery) Portal which was installed automatically additionally on your Synology NAS when installing Synology ABB. It's pretty straightforward: Highlight the according folder(s)/file(s), right-click and choose Restore (don't forget to have your Batocera system turned on!):
After successful restore process, reboot your Batocera system.
That's it, you're done!