Kodi Community Forum
[Release] Backup (formerly XBMC Backup) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [Release] Backup (formerly XBMC Backup) (/showthread.php?tid=129499)



RE: [Release] Backup (formerly XBMC Backup) - ASDasfasfdasfas - 2019-09-15

(2019-09-12, 15:08)robweber Wrote:
(2019-09-12, 14:24)ASDasfasfdasfas Wrote: Hey Rob, thanks for your hard work on this. I haven't been able to get local storage, network storage or Google Drive storage to work. I either get the error 'Destination may not be writable' and then 'Bcakup complete, some files may not have been written'; OR 'Backup error - check log'.

I can't see anything in the logs (not sure if I need to turn logging on for the add-on. Am I doing something wrong?

I can understand Google Drive being a bit difficult to setup but local and network storage should work fairly easily. It uses the same file system components that Kodi itself uses to traverse those kinds of file systems. 

If you can, turn on debug logging (Settings->System->Logging) and then run the addon. Post the result to something like https://paste.kodi.tv/. It will have info in it that would be helpful in trying to figure out what is going on. 

Thanks for your reply. I found an add-on called Kodi Logfile Uploader (for any other noob else who comes across this thread). See the log at: http://paste.kodi.tv/vesimomosi, line 1733 for the good stuff.


RE: [Release] Backup (formerly XBMC Backup) - robweber - 2019-09-15

Looks like the program is erroring out right at the start when trying to log the remote path information. It's a Unicode error. Does your remote path have any non-ascii characters in it?


RE: [Release] Backup (formerly XBMC Backup) - ASDasfasfdasfas - 2019-09-16

(2019-09-15, 17:45)robweber Wrote: Looks like the program is erroring out right at the start when trying to log the remote path information. It's a Unicode error. Does your remote path have any non-ascii characters in it?

Nope – Smb://192.168.1.3/John Smith's Public Folder. Same error if I use a USB stick in the back of the NVidia TV.


RE: [Release] Backup (formerly XBMC Backup) - robweber - 2019-09-16

(2019-09-16, 00:20)ASDasfasfdasfas Wrote:
(2019-09-15, 17:45)robweber Wrote: Looks like the program is erroring out right at the start when trying to log the remote path information. It's a Unicode error. Does your remote path have any non-ascii characters in it?

Nope – Smb://192.168.1.3/John Smith's Public Folder. Same error if I use a USB stick in the back of the NVidia TV. 

I tried making a couple of folders with odd characters to duplicate the error and I couldn't. What regional setting are you using? I saw it load the en_gb language file but figured it's worth asking just to make sure I have the same settings. Only thing I didn't try specifically was using an Android device as well, I could just haven't yet. What is the path if you're using a USB stick? 

If you're comfortable doing it just commenting out line 147 in the lib/resources/backup.py file would at least get you past that error to see if something else is going on. It's just a log line so it wouldn't affect anything. I really can't get that error to duplicate no matter what I seem to try, but if you can get past it perhaps another error will shed some light on what's going on there.


RE: [Release] Backup (formerly XBMC Backup) - sba923 - 2019-09-24

(2012-04-20, 21:21)robweber Wrote: 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.

This addon is not yet Python 3 compatible, as such the version in the repo is not the most current. I'm working on getting this done for inclusion to the Leia repository. 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:

Most Current Version (Krypton+) - https://github.com/robweber/xbmcbackup/releases/tag/krypton-1.5.0
Legacy Version (current in Kodi repo) -  https://github.com/robweber/xbmcbackup/releases/tag/jarvis-1.1.3
Code: https://github.com/robweber/xbmcbackup/
Wiki: https://github.com/robweber/xbmcbackup/wiki 
FAQ: https://github.com/robweber/xbmcbackup/wiki/FAQ 

I've set this up on my brand new 18.4 Leia running on a Pi 3 -- the one in the Kodi repo would freeze at "Gathering file list..."  Tongue

I'll keep you posted with any findings / issues.


RE: [Release] Backup (formerly XBMC Backup) - robweber - 2019-10-01

Just updated to a new version on GitHub for those using that. It includes a fix for restore operations from cloud systems (Dropbox/Google Drive) where if the archive is non-compressed the start of the restore fails. Also added a dependency on the script.module.dropbox addon instead of bundling the dropbox code with this addon directly. Making good progress on a Python 3 compatible version so hopefully official updates in the Leia repo very soon. 

https://github.com/robweber/xbmcbackup/tree/krypton-1.5.2


RE: [Release] Backup (formerly XBMC Backup) - asik1 - 2019-10-09

Hi, this morning I backed up my Kodi18.4 on android 7, as I wanted to clear it's content.
After doing so this after noon I restored it but still I had to re- configure my skin , The TV (PVR settings) still not fully operate.
How I can avoid all that on later restores ?
Thank you.


RE: [Release] Backup (formerly XBMC Backup) - robweber - 2019-10-10

(2019-10-09, 17:33)asik1 Wrote: Hi, this morning I backed up my Kodi18.4 on android 7, as I wanted to clear it's content.
After doing so this after noon I restored it but still I had to re- configure my skin , The TV (PVR settings) still not fully operate.
How I can avoid all that on later restores ?
Thank you.

What version of the addon are you using?


RE: [Release] Backup (formerly XBMC Backup) - CiNcH - 2019-10-14

(2019-10-09, 17:33)asik1 Wrote: Hi, this morning I backed up my Kodi18.4 on android 7, as I wanted to clear it's content.
After doing so this after noon I restored it but still I had to re- configure my skin , The TV (PVR settings) still not fully operate.
How I can avoid all that on later restores ?
Thank you.

What I typically do after a restore is kill Kodi. Closing it seems to result in some restored configuration files being overwritten on close. Killing Kodi after a restore prevents that. On Android, you can for example do so via Settings > Apps > Kodi > Force stop.

I use ADB+script to force stop Kodi after a restore:
Code:
adb shell am force-stop org.xbmc.kodi



RE: [Release] Backup (formerly XBMC Backup) - CiNcH - 2019-10-14

Backup seems to be broken with current nightlies:
Code:

2019-10-14 09:21:38.878 T:21615   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'ModuleNotFoundError'>
                                            Error Contents: No module named 'utils'
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/scheduler.py", line 8, in <module>
                                                from resources.lib.backup import XbmcBackup
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 4, in <module>
                                                import utils as utils
                                            ModuleNotFoundError: No module named 'utils'
                                            -->End of Python script error report<--



RE: [Release] Backup (formerly XBMC Backup) - robweber - 2019-10-15

(2019-10-14, 09:38)CiNcH Wrote: Backup seems to be broken with current nightlies:
Code:

2019-10-14 09:21:38.878 T:21615   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'ModuleNotFoundError'>
                                            Error Contents: No module named 'utils'
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/scheduler.py", line 8, in <module>
                                                from resources.lib.backup import XbmcBackup
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 4, in <module>
                                                import utils as utils
                                            ModuleNotFoundError: No module named 'utils'
                                            -->End of Python script error report<--
I believe they just recently merged in python3 to mainline. I expect this broke quite a few things related to this addon. I have a branch on github where I'm working on fixing things for Python3 but it isn't ready yet. I would not use Kodi nightlies if this addon (and probably a lot others) are important to your system.


RE: [Release] Backup (formerly XBMC Backup) - NetworkGuy - 2019-10-15

I installed the Backup add-on a long time back on Kodi for Android. I have gone through the Kodi UI for updates, but I never see anything available.

Is there a recommended method for updating the Backup add-on?


RE: [Release] Backup (formerly XBMC Backup) - robweber - 2019-10-15

(2019-10-15, 08:19)NetworkGuy Wrote: I installed the Backup add-on a long time back on Kodi for Android. I have gone through the Kodi UI for updates, but I never see anything available.

Is there a recommended method for updating the Backup add-on?

You can pull the latest version from Github if you want - https://github.com/robweber/xbmcbackup/tree/krypton-1.5.2 - just download the ZIP file. I should be able to push this version to the Krypton repo yet just haven't gotten around to it. I've been working on a Leia version but am encountering some python 2/3 compatibility issues. getting this pushed to the Krypton repo might be a better idea at this point.


RE: [Release] Backup (formerly XBMC Backup) - CiNcH - 2019-10-15

I have been using 1.1.3 on Leia for quite some time which I probably shouldn't have. Only now with a recent PR to Master/Matrix (#16116) has the add-on stopped working.


RE: [Release] Backup (formerly XBMC Backup) - robweber - 2019-10-15

(2019-10-15, 19:21)CiNcH Wrote: I have been using 1.1.3 on Leia for quite some time which I probably shouldn't have. Only now with a recent PR to Master/Matrix (#16116) has the add-on stopped working.

This was expected. Even the most current version on Github wouldn't have helped. The python 3 merge likely broke LOTS of addons that aren't compatible. I believe the merge was pushed by the Kodi Team so that people can get stuff in order for when Matrix is ready to release. The only addons added to the Leia repo must be python 2/3 compatible but addons in previous repos are not.