I have setup Openelec on my Raspberry Pi more times than I can remember. I'm about to do it again. I've been spending a lot of time lately with Docker and some with Vagrant, where you script the configuration so it is easy to redeploy on different servers. I thought it would be nice if Kodi supported the same (scripted configuration). Searches turn up very little. Does anyone have any knowledge or experience (or ideas) of such functionality? Perhaps a config file can be written.
Per the advice on Kodi's documentation for backing up:
Nearly all of Kodi's settings are stored in the userdata folder. Some files, such as add-ons that are not included by default, are stored in the parent folder to userdata, the Kodi folder.
[Note: On Linux, the userdata folder is at ~/.kodi/userdata/]
I haven't tested this approach, but my understanding of it (somewhat backed up by anecdotal reports) is that all you need to do is complete a fresh install and copy over the .kodi and userdata folders from your configured setup. That should bring in all your plugins.