There is a particular kind of dread that only Kodi users know. You have spent a year building your setup: the IPTV playlist is tuned, the groups are named and sorted, the EPG is matched so every channel shows an…
There is a particular kind of dread that only Kodi users know. You have spent a year building your setup: the IPTV playlist is tuned, the groups are named and sorted, the EPG is matched so every channel shows an accurate programme guide, the favourites list is exactly right, and the subtitle and audio preferences are dialled in for every member of the household. Then a blackout or a firmware update kills the box, or you upgrade to a new Fire TV Stick, and every bit of it is gone.
Kodi is not like a streaming app where you sign in and everything returns. Your PVR/IPTV setup, your skin, your add-ons and your EPG all live in a folder called userdata on the device itself, and unless you have copied it somewhere else, it exists in exactly one place. This guide covers how to back up a Kodi IPTV setup properly, how to restore it after a failure, and — for anyone running more than one screen — how to move the whole library and every stream to a new box without re-entering a single M3U URL.
What a Kodi IPTV Setup Actually Consists Of
Before you copy anything, it helps to know what you are protecting, because the pieces live in different places and fail in different ways. Kodi stores the bulk of your setup inside its profile directory, usually referred to as userdata. On Android-based devices such as the Fire TV Stick, NVIDIA Shield and Chromecast with Google TV, the path is typically:
- Android / Fire TV:
/sdcard/Android/data/org.xbmc.kodi/files/.kodi/userdata/ - Windows:
%APPDATA%\Kodi\userdata\ - macOS:
~/Library/Application Support/Kodi/userdata/ - LibreELEC / CoreELEC:
/storage/.kodi/userdata/ - Linux:
~/.kodi/userdata/
Inside that folder the files that matter for an IPTV setup are:
sources.xml— your configured media sources, including a local M3U file if you use one instead of the built-in PVR client.addon_data/— one subfolder per add-on. This is where the PVR IPTV Simple Client stores the M3U URL, the EPG URL and every PVR setting; where TiviMate-style playlists saved from an add-on live; and where your skin, subtitle and audio add-ons keep their configuration. This folder is the single most important thing to back up.Database/(in the parent Kodi directory, not userdata) — the SQLite libraries:MyVideos,MyMusic,TVودليل البرامج الإلكتروني. These hold your watched status, resume points, recording schedule and EPG cache.playlists/وfavourites.xml— custom channel lists and anything you have starred.guisettings.xml— resolution, refresh-rate switching, audio passthrough and hardware acceleration flags. Restoring this on a different device model is the classic cause of a black screen.
That last point is the reason so many “backup” attempts go wrong: a blind copy of the whole Kodi directory moves device-specific display settings too, and those settings may not suit the new hardware. A good backup strategy separates the portable configuration from the hardware-specific configuration, which is exactly what the rest of this guide does.
Method 1: The Built-In Backup Add-On (Easiest, Works on Every Device)
Kodi has an official backup add-on in its repository, and for a typical IPTV setup it is the least painful option because it handles the file copying, scheduling and compression for you — on a Fire TV Stick, where you cannot easily browse the filesystem, this is close to essential.
Installing and configuring it
- From the Kodi home screen, open Add-ons and select Install from repository.
- يفتح Kodi Add-on Repository, then Program add-ons, and install Backup.
- Launch the add-on and open إعدادات.
- Under General, set a backup destination. For an IPTV setup the two sensible choices are an external USB drive or SD card, or a network share on a NAS. Avoid backing up to the same internal storage you are trying to protect.
- Under File Selection, choose Custom Selection and tick the things that matter: Add-on settings, Database, Playlists, Favourites و Sources. Leave out Thumbnails unless you have space to spare — a large IPTV library can generate gigabytes of artwork that Kodi will simply re-download.
- Leave Overwrite backup off and let it create dated folders, so a corrupted backup never replaces a good one.
Taking the backup
Run the add-on manually once so you can watch it complete, then schedule it. A weekly automated run plus a manual one before any major change — switching IPTV providers, updating Kodi, swapping devices — covers almost every realistic failure. The add-on can also compress the output to a single archive, which makes it far easier to copy off the device later; see the standard backup practice of keeping multiple independent copies for why a single archive on the same device is not really a backup.
One caveat worth knowing: the backup add-on expects each device to have its own destination and its own settings. If you run Kodi on three TVs, each one needs the add-on configured, and each will produce a backup containing that device’s own display settings. That is fine for restoring the same device; it is not what you want for cloning a setup onto new hardware.
Method 2: Manual Copy via ADB (Best for Cloning a Setup)
If your goal is to move a working IPTV setup onto another Fire TV Stick or Android TV box, the built-in add-on is the wrong tool because it captures too much device-specific state. Pulling the relevant folders straight off the device with ADB gives you a clean, portable copy instead.
Step 1 — enable ADB debugging
On a Fire TV Stick, go to Settings → My Fire TV → About and tap the device name seven times to reveal developer options, then enable ADB Debugging. On Google TV or another Android TV device, enable Developer options and then USB debugging in the same way. Find the device’s IP address under Settings → Network.
Step 2 — connect and pull the folders
From a computer on the same network, connect with adb connect <device-ip>:5555 and approve the prompt on the TV. Then pull the configuration:
adb pull /sdcard/Android/data/org.xbmc.kodi/files/.kodi/userdata ./kodi-backup/userdataadb pull /sdcard/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/pvr.iptvsimple ./kodi-backup/iptv-simpleadb pull /sdcard/Android/data/org.xbmc.kodi/files/.kodi/userdata/Database ./kodi-backup/Database
What you have now is the portable core: your IPTV client configuration (M3U and EPG URLs, buffer settings, channel numbering), your add-on settings, your library databases and your favourites. What you have deliberately left behind is guisettings.xml, which encodes the old device’s resolution, refresh-rate switching and codec support.
Step 3 — restore onto the new device
- Install Kodi on the new box and launch it once, so it creates its own directory structure and its own hardware-appropriate
guisettings.xml. - Force-stop Kodi before copying anything over the top. Copying into a running Kodi is how you end up with half-written database files.
- Push the folders back with
adb pushto the same paths. - Launch Kodi and check the PVR client settings first. The M3U URL and EPG URL should be present and the channels should populate after a few minutes.
If the restored setup is missing channels but the URLs are correct, the cause is almost always the EPG cache rather than the stream. Rebuilding the guide data is a separate operation from restoring the playlist, and the steps for pairing channels with a correct guide are covered in our EPG setup guide; the same matching logic applies inside Kodi’s PVR client.
Method 3: Move the Whole Library Without Losing Watched Status
Backing up a Kodi IPTV setup is one problem; migrating a thousand-title library between devices is another. Kodi stores its libraries in SQLite databases, and those files contain absolute file paths. Copy them to a new device where the media lives at a different path and Kodi will show every title as unavailable.
There are two reliable ways to handle this, and the choice depends on whether you want to keep your watch history.
Option A — export and re-import (clean, path-independent)
- In Kodi, go to Settings → Media → Library وتمكين Export library with the option to export separate files per item. This writes an
.nfosidecar next to each video and a set of artwork files. - Copy your media to the new device or new share.
- On the new device, add the media source and set the content type so Kodi scans it. It will read the
.nfofiles rather than fetching metadata again. - Watched status and resume points come across inside the
.nfofiles, so the library looks identical.
This route takes longer on a big library but survives any change of path, drive letter or NAS share name. It also leaves you with a human-readable copy of your metadata, which is its own form of insurance.
Option B — copy the databases and fix paths
Copying MyVideos.db و TV.db preserves everything instantly, including play counts, but the paths inside them must be updated. Two practical approaches:
- Keep the media path identical on both devices. If the old box read from
/storage/emulated/0/Media/, mount the new library at the same path, and no editing is needed. - Otherwise, use a Kodi path-substitution add-on or edit the database with a SQLite tool before copying it, replacing the old prefix with the new one.
For a pure IPTV setup — no local media, everything streamed from a provider playlist — this entire problem disappears. Your library is the provider’s, and all that needs to travel is the PVR client configuration plus your EPG and favourites. That is why a clean separation between “streamed IPTV” and “local media” in your Kodi setup pays off the day you upgrade hardware.
Protecting the Setup From the Failures That Actually Happen
Most Kodi setups are not lost to dramatic hardware failure. They are lost to three mundane things, and each has a cheap defence.
Power loss during a database write
A sudden cut while Kodi is writing to EPG.db — which happens every time the guide refreshes, so several times a day — can leave the file corrupted. Kodi will usually rebuild an EPG database automatically, but a corrupted video library database can take far longer to recover. Putting the device and your router on a small UPS is the only real fix, and it also keeps streams alive through short brownouts. Keeping the last two or three dated backups covers the rest.
The corrupted or broken add-on update
An add-on update that changes settings format, or a skin update that breaks your home screen layout, is far more common than a dead drive. This is where a backup taken before you accept an update is worth its weight: restoring takes minutes, while rebuilding an IPTV setup from scratch takes an evening. If you have already lost the configuration and are rebuilding, the ordering that avoids most re-work is documented in our beginner IPTV guide.
An expiring or changed playlist URL
Providers rotate playlist URLs, and a dead M3U link looks exactly like a broken device. Before you restore from backup, confirm the stream itself is alive. Log the M3U and EPG URLs somewhere outside Kodi — a password manager note is ideal — so that when a provider changes them you are not hunting through addon_data on a device with no file browser.
If channels have vanished and the URLs check out, the fault is usually elsewhere in the chain — network, hardware decoding, or the provider’s servers. Our IPTV error troubleshooting guide walks through that decision tree for Kodi, TiviMate and IPTV Smarters alike.
Keeping credentials out of plain sight
Your addon_data folder contains your IPTV username and password in plain text, along with any debrid or tracker credentials. A backup file is therefore a credential file. Keep it on a drive or share that is not publicly accessible, and if you are storing it on a NAS, put it in an encrypted container — the AES standard used by VeraCrypt and similar tools is the sensible baseline. Never post a Kodi backup archive to a support forum while asking for help; that is how accounts get shared around.
Restore Checklist and a Realistic Backup Plan
When something goes wrong, work through this in order and you will usually be back in front of live TV within twenty minutes.
- Confirm the box is the problem, not the service. Try the same M3U URL on a phone player. If it plays, restore the box; if it does not, contact your provider.
- Restore configuration before libraries. Get the PVR client and add-on settings back first, verify live channels play, then deal with library databases.
- Do not restore
guisettings.xmlonto different hardware. Accept the new device’s defaults and re-apply only the settings you actually notice missing. - Rebuild the EPG last. It re-downloads itself, and doing it after the playlist is confirmed working avoids confusing yourself with two faults at once.
- Take a fresh backup immediately after a successful restore — it is the only moment you know the configuration is known-good.
The plan that most households settle on after their first disaster is a three-tier one: an automated weekly backup add-on run to a NAS or USB drive, a manual backup before every Kodi or add-on update, and a copy of the M3U and EPG URLs stored outside Kodi entirely. Together those cover device failure, software breakage and provider changes, which between them account for nearly every way an IPTV setup dies.
If you are reinstalling from scratch rather than restoring, the setup itself matters as much as the backup. A curated playlist, sensible group organisation and correct time-zone handling in the guide make the difference between a box you fight with and one you just watch. Our channel organisation guide covers the playlist side, and if you are running WinOTT the M3U and EPG details are in your subscriber dashboard, so a rebuild needs nothing more than those two URLs and ten minutes of typing.
Frequently Asked Questions
Does Kodi back up my IPTV settings automatically?
No. Kodi itself has no automatic backup. All settings, including your PVR IPTV client configuration and EPG URLs, stay in the local userdata folder until you copy them somewhere else. You need either the Backup add-on with a schedule enabled, or a manual copy via ADB or a file manager.
Where is the Kodi userdata folder on a Fire TV Stick?
It is at /sdcard/Android/data/org.xbmc.kodi/files/.kodi/userdata/. Because Fire OS gives you no reliable file browser for that path, the practical options are the Backup add-on, a network share configured inside Kodi, or ADB from a computer over your network.
Can I copy my Kodi setup to a second TV and use both?
Yes, and it is a good idea to do it by copying the userdata و addon_data folders rather than the whole Kodi directory, then letting each device generate its own display settings. Note that a single IPTV subscription usually limits how many simultaneous streams you can run, so two boxes do not mean two streams unless your plan allows it.
Will restoring a backup break my library or lose watched status?
Restoring on the same device at the same paths preserves everything. Restoring onto a device where media lives at a different path will show titles as unavailable until the paths are corrected, or until you re-import from exported .nfo files, which carry watched status and resume points with them.
How often should I back up a Kodi IPTV setup?
Weekly on a schedule, plus a manual backup immediately before any Kodi version upgrade, add-on update or hardware swap. Keep at least two generations so that a backup taken while something was already broken cannot overwrite a good one. The whole configuration is small — usually a few megabytes without thumbnails — so there is no reason to be stingy with copies.