Kodi Data Recovery: What It Is & How to Restore
In this article
Kodi is a free, open-source media player that organizes and plays your local and streaming media libraries. If your Kodi library, settings, or add-ons disappear after a crash or reinstall, you can recover them from backup files or by restoring the Kodi data folder. This article explains what Kodi is, where its data lives, and the exact steps to recover it.
What Is Kodi?
Kodi (formerly XBMC) is a media center application developed by the XBMC Foundation. It runs on Windows, macOS, Linux, Android, iOS, and Raspberry Pi. You install it from official app stores or the official Kodi website. It lets you browse and play movies, TV shows, music, photos, and live TV from local storage or network shares. It also supports add-ons that extend functionality—for example, streaming from YouTube or managing a Plex server—but the core program itself is not a streaming service.
Kodi stores all its configuration—your library database, add-on settings, playlists, and GUI skin preferences—in a single data folder. That folder is the key to any recovery.
Where Kodi Stores Its Data
Kodi’s data folder location varies by operating system. On Windows, it’s %APPDATA%\Kodi (usually C:\Users\YourName\AppData\Roaming\Kodi). On macOS, it’s ~/Library/Application Support/Kodi. On Linux, it’s ~/.kodi. On Android, it’s Android/data/org.xbmc.kodi/files/.kodi (though on newer Android versions, this path may be restricted). On iOS and tvOS, it’s /var/mobile/Library/Preferences/Kodi (requires a jailbroken device or a sideloaded version).
Inside that folder, the most important subfolders are:
- userdata/ – contains
addon_data(settings for each add-on),keymaps,playlists, andguisettings.xml(your interface settings). - userdata/Database/ – holds
MyVideos*.dbandMyMusic*.db(your media library databases). - media/ – custom fanart and textures.
If you lose this folder, you lose your library and settings. But if you have a backup, recovery is straightforward.
How to Back Up Kodi Data (Before You Need Recovery)
The best recovery is a backup. Kodi has a built-in backup add-on called “Backup” (by the Kodi team). To use it:
- Open Kodi and go to Add-ons > My add-ons > Program add-ons.
- If “Backup” isn’t listed, go to Add-ons > Search and type “Backup”. Install the one from the official Kodi repository.
- Open the Backup add-on and choose Create backup.
- Select a destination—a USB drive, network location, or cloud folder (like Dropbox). The add-on will copy your entire
userdatafolder into a single ZIP file.
Alternatively, you can manually copy the entire Kodi data folder to an external drive. That works on any OS, but you must close Kodi first to avoid file locks.
How to Recover Kodi Data from a Backup
If you have a backup ZIP file, restoring is simple:
- Install Kodi on your new device (or the same one after a reinstall). Run it once, then close it completely.
- Open the Backup add-on again (you may need to install it first).
- Choose Restore and browse to your backup file.
- Select the file and confirm. Kodi will overwrite the existing
userdatafolder with the backup contents. - Restart Kodi. Your library, add-ons, and settings should be back.
If you have a manual copy of the data folder, just replace the current userdata folder with your copy. On Windows, for example, navigate to %APPDATA%\Kodi, delete or rename the existing userdata folder, and paste your backup folder in its place. Then restart Kodi.
Recovering After a Crash or Reinstall Without a Backup
If you didn’t back up, recovery is harder but sometimes possible. Kodi doesn’t auto-backup, but your data folder might still exist on disk even after a crash. Check the original location first. If Kodi was uninstalled, the folder may remain (Windows uninstallers often leave AppData behind). If you reinstalled Kodi, the new installation might have overwritten the old folder—so don’t install Kodi again until you’ve checked.
If the folder is gone, you can try file recovery tools that scan for deleted files (e.g., Recuva on Windows). However, this is not guaranteed and depends on whether the disk space was overwritten. The only reliable way is to restore from a backup or from a system image (like Windows File History or macOS Time Machine).
If you can’t recover the old data, you can rebuild your library. Kodi can rescan your media folders automatically. Go to Videos > Files > Add videos and select your media folders. Kodi will scrape metadata (titles, artwork) again. Add-ons will need to be reinstalled individually.
Common Problems and Misconceptions
“Kodi is illegal.” Kodi itself is perfectly legal. Some add-ons that stream pirated content are not, but the core software is not. This article only covers official, legal uses.
“I lost my library because I updated Kodi.” Updates usually preserve your data folder. If an update causes a crash, your data is still there—just restart Kodi. If the update corrupted a database, try renaming the MyVideos*.db file to force a rebuild (Kodi will create a new one).
“Recovery requires rooting or jailbreaking.” No. On Android, you can access the data folder with a file manager if your device allows it (Android 11+ may restrict access to Android/data, but you can use Kodi’s own file manager or a PC connection). On iOS, you need a jailbroken device or a sideloaded version because Apple restricts file access—but that’s a platform limitation, not a Kodi feature.
If That Didn’t Work: Reinstall and Rebuild
If recovery fails, do a clean reinstall. Uninstall Kodi, delete the leftover data folder (if any), then reinstall from the official source. After a clean install, you’ll have a blank Kodi. Rebuild your library by adding your media sources again. This is time-consuming but reliable.
Frequently Asked Questions
Can I recover Kodi data from a dead hard drive?
If the drive is physically dead, you need professional data recovery services—that’s outside Kodi’s scope. If the drive is still readable but Kodi won’t start, copy the entire data folder to another drive and restore it there.
Does Kodi store data in the cloud?
No. Kodi is local-only by default. You can sync your library using a MySQL database (advanced setup) or use add-ons like Trakt to sync watch history, but the core data folder is always local.
Will restoring a backup overwrite my current Kodi settings?
Yes. Restoring a backup replaces your current userdata folder. If you want to keep current settings, back them up first.
Can I recover individual add-on settings without a full restore?
Yes. Inside your backup, the userdata/addon_data folder contains settings for each add-on. You can copy just that subfolder back into your current userdata folder to restore add-on settings without touching your library.
Is there a way to recover Kodi data on Android without a PC?
Yes, if your Android version allows access to Android/data. Use a file manager app that can show hidden files. If not, connect your device to a PC and enable file transfer mode—then you can copy the folder.