Restoring library and settings after moving .kodi directory


After the Easter update I was getting a black screen after boot - the splash screen would show, but nothing subsequent. Ocassionally I’d get brief flashes of the home screen.

I searched for similar recent issues and followed Sam’s advice in this comment.

Having moved the directory to a backup folder and rebooted, OSMC displayed as it ought to, so I knew there’d be something I’d need to change or remove somewhere in the config. First thing I did was try to restore the original directory:

mv /home/osmc/.kodi-backup /home/osmc/.kodi

…but that seems to have been a mistake. On rebooting, I didn’t get back my library and settings as I’d expected, it still acts like a fresh install. Naturally the .kodi-backup directory no longer exists in /home/osmc/.

Continuing to act rashly rather than ask for help, I used My OSMC >> Updates >> Manual Controls >> Restore a backup of settings to restore the backup that was taken prior to updating. No dice - still no settings or library restored.

Is there anything I can do to get back to where I was just after (or indeed, before) the update? I’m on a Vero 4K. Thanks!

Edit: I forgot, here’s the output of grab-logs -A after I’d done all of the above. Don’t know if it’s of any use.

What’s the output of ls -al /home/osmc/ ?

Thanks for the quick reply, Sam.

osmc@osmc:~$ ls -al /home/osmc/
total 56
drwxr-xr-x 10 osmc osmc 4096 Apr 22 22:31 .
drwxr-xr-x  3 root root 4096 Jan  1  2015 ..
drwxr-xr-x  2 osmc osmc 4096 Apr 22 16:21 backups
-rw-------  1 osmc osmc  285 Apr 23 00:53 .bash_history
-rw-r--r--  1 osmc osmc  220 Nov  5  2016 .bash_logout
-rw-r--r--  1 osmc osmc 3515 Nov  5  2016 .bashrc
drwxr-xr-x  4 osmc osmc 4096 May  6  2017 .cache
drwxr-xr-x  9 osmc osmc 4096 Apr 22 22:44 .kodi
drwxr-xr-x  2 osmc osmc 4096 Feb 26  2017 Movies
drwxr-xr-x  2 osmc osmc 4096 Feb 26  2017 Music
drwxr-xr-x  2 osmc osmc 4096 Feb 26  2017 Pictures
-rw-r--r--  1 osmc osmc  675 Nov  5  2016 .profile
drwxr-xr-x  2 osmc osmc 4096 Mar 21  2017 .smb
drwxr-xr-x  2 osmc osmc 4096 Feb 26  2017 TV Shows

Sorry for the bump, but I’m keen not to do anything destructive (if it’s not already too late). Anything I can do?

From your backup, restore your db’s from /home/osmc/.kodi/userdata/Database. These are the numbers from v17, for each category.

v17 - Krypton February 2017 107 60 13 27 6 29 11 0

Also, restore sources.xml, profiles.xml (if relevant and existing), and guisettings.xml from your backup to /home/osmc/.kodi/userdata.

Thanks ActionA, I’ll have a dig around tomorrow. Should be be unpacking the .TAR file and restoring the .XML files from there into /home/osmc/.kodi/, overwriting the files that are there?