2012-04-20, 21:21
For a lot of different reasons (testing, new system, computer crashes) it is a good idea to backup your Kodi data. I've spent enough time copying my userdata folder around that I decided that being able to just click a button and send it on it's way was worth the time coding an addon for it.
The Backup Addon
This is a real quick way to export your Kodi data to another folder or network share for backup purposes. Scheduling, compressing, and having a max number of archived backups are also configurable options. This allows you to use the addon as a completely hands off backup solution. The types of files you can backup from Kodi include:
Since this addon is using the xbmcvfs python module to actually do the file copy you should be able to backup to any location read/writeable on your system. You can also write directly to a Dropbox or Google Drive target without needing the client on your HTPC. Right now you can download the addon from the main Add-on repo or the github page for this project. Pretty much everything you need can be found in the Wiki listed below. Please note that the version in the Kodi repo for Leia is very outdated due to the Python 3 migration. Please use the links below for a more current Python 2 version. The Python 3 version is live in the Matrix repo already so download that from the Addon Browser.
Matrix (Python 3) Version - https://github.com/robweber/xbmcbackup
Krypton/Leia Version (Python 2) - https://github.com/robweber/xbmcbackup/tree/krypton
Legacy Version (current in Kodi repo) - https://github.com/robweber/xbmcbackup/r...rvis-1.1.3
Code: https://github.com/robweber/xbmcbackup/
Wiki: https://github.com/robweber/xbmcbackup/wiki
FAQ: https://github.com/robweber/xbmcbackup/wiki/FAQ
The Backup Addon
This is a real quick way to export your Kodi data to another folder or network share for backup purposes. Scheduling, compressing, and having a max number of archived backups are also configurable options. This allows you to use the addon as a completely hands off backup solution. The types of files you can backup from Kodi include:
- User Addons - Addon's you've downloaded
- Addon Data - Settings associated with your addons
- Database - The SQLite Databases
- Playlists - Your playlist folder
- Thumbnails/Fanart - downloaded images
- Config Files - sources.xml, guisettings.xml, advancedsettings.xml, etc
- Other non-Kodi directories on your local system
Since this addon is using the xbmcvfs python module to actually do the file copy you should be able to backup to any location read/writeable on your system. You can also write directly to a Dropbox or Google Drive target without needing the client on your HTPC. Right now you can download the addon from the main Add-on repo or the github page for this project. Pretty much everything you need can be found in the Wiki listed below. Please note that the version in the Kodi repo for Leia is very outdated due to the Python 3 migration. Please use the links below for a more current Python 2 version. The Python 3 version is live in the Matrix repo already so download that from the Addon Browser.
Matrix (Python 3) Version - https://github.com/robweber/xbmcbackup
Krypton/Leia Version (Python 2) - https://github.com/robweber/xbmcbackup/tree/krypton
Legacy Version (current in Kodi repo) - https://github.com/robweber/xbmcbackup/r...rvis-1.1.3
Code: https://github.com/robweber/xbmcbackup/
Wiki: https://github.com/robweber/xbmcbackup/wiki
FAQ: https://github.com/robweber/xbmcbackup/wiki/FAQ