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) - Skirge01 - 2019-11-25

(2019-11-25, 03:23)NetworkGuy Wrote:
(2019-11-23, 23:49)robweber Wrote:
(2019-11-23, 17:21)Skirge01 Wrote: I appreciate the reply, but I'm not a coder.  The suggested fix says to 'import into' backup.py.  I first attempted replacing the existing backup.py, but that didn't work.  Do you know if this code needs to be inserted into the beginning of the existing backup.py file or something else needs to be done?  Thanks!  

I don't have time right this moment but in the next day or so I'll make the changes as indicated in the Github link and publish a ZIP you can download and try. Will that work? Won't take me long. I'm hesitant to make that particular fix a part of the addon for everyone as it involves replacing the default python zipfile.py file with a custom one. I don't want any unintended consequences.  
Hi Rob, I appreciate all you have done with the Backup add-on. I am also not a coder, so earlier when you said I could grab an update from Github, I was not sure what to do with the update. I have a ShieldTV (Android TV) -- I am sure there is a way to apply the update, but I am not sure what that way entails. Anything you can suggest is appreciated. Otherwise, I am happy to wait until there is an update which can be applied within Kodi itself.

Thank again, Rob! 
I'm unfamiliar with the ShieldTV, so I don't know if it's as simple as on a regular PC, but this is generally how you go about installing a Kodi addon from a zip file:  https://kodi.wiki/view/HOW-TO:Install_add-ons_from_zip_files

If you download the zip file he linked you to on Github and then make it so you can browse to the zip file via your ShieldTV, you should be able to use those Wiki instructions.


RE: [Release] Backup (formerly XBMC Backup) - nojoe - 2019-11-25

Simple question. Doesn't find really a 'no, is impossible'.
Can i backup also single files eg /storage/.config/samba.conf ?


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

(2019-11-25, 14:02)nojoe Wrote: Simple question. Doesn't find really a 'no, is impossible'.
Can i backup also single files eg /storage/.config/samba.conf ?

If you're using the latest version from GitHub then the answer "sort of". The one in the Kodi repo (1.1.3) allows for backing up custom folders with recursion only. The version on GitHub with the new Advanced Editor feature allows for specific folders with no recursion. This means you could backup the folder the samba config file is in but not recurse into sub directories. If this folder isn't overly huge that would be the best way. At this time the backup sets are predicated on having a defined folder as the root. 

I would recommend this version at the moment as long as you are using Krypton or Leia versions of Kodi. You can download the ZIP file and just use the Install from Zip function within Kodi to get it installed.  Use the Advanced Editor functionality as described in the Wiki. Set the folder you want to include and set the "include subfolders" option to false.


RE: [Release] Backup (formerly XBMC Backup) - nojoe - 2019-11-25

I'm already installed latest from git! 😊
As feature request it would be a great addition to backup single files. So many custom files but sometimes it's not the best solution to restore a whole folder with many files. Eg an OS update changing some files. Or?


RE: [Release] Backup (formerly XBMC Backup) - elhifinio - 2019-11-29

Hi everyone,

no matter which version I am using (1.1.3, 1.5.0 or 1.5.2) I do get the following error: https://paste.kodi.tv/udonuqeyah.kodi

I am using Kodi 17.6 x64 on Windows 10.

Hopefully, you have some idea why this happens.

Thanks


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

(2019-11-29, 18:23)elhifinio Wrote: Hi everyone,

no matter which version I am using (1.1.3, 1.5.0 or 1.5.2) I do get the following error: https://paste.kodi.tv/udonuqeyah.kodi

I am using Kodi 17.6 x64 on Windows 10.

Hopefully, you have some idea why this happens.

Thanks

I'm guessing this is on a Restore right? The error is being thrown in the guisettings.py class, this is only called on restores to try and set the GUI Settings back to where they were. Looks like there is a character in the Settings.GetSettings call being returned that the JSON library can't decode. What are your region and language settings?


RE: [Release] Backup (formerly XBMC Backup) - elhifinio - 2019-11-29

(2019-11-29, 18:30)robweber Wrote:
(2019-11-29, 18:23)elhifinio Wrote: Hi everyone,

no matter which version I am using (1.1.3, 1.5.0 or 1.5.2) I do get the following error: https://paste.kodi.tv/udonuqeyah.kodi

I am using Kodi 17.6 x64 on Windows 10.

Hopefully, you have some idea why this happens.

Thanks

I'm guessing this is on a Restore right? The error is being thrown in the guisettings.py class, this is only called on restores to try and set the GUI Settings back to where they were. Looks like there is a character in the Settings.GetSettings call being returned that the JSON library can't decode. What are your region and language settings? 
German


RE: [Release] Backup (formerly XBMC Backup) - elhifinio - 2019-11-29

oh and yes, it's on a restore


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

(2019-11-29, 18:45)elhifinio Wrote: oh and yes, it's on a restore

Ok, I can't find the exact setting causing the error as it isn't shown, but definitely one of the settings has a non-unicode character causing the error. I added a wrapper to try and encode the string before the JSON library reads it to see if that would help. Hopefully you're comfortable with installing a test version to see if this works. Just download the zip file from this link and use "install from zip" in Kodi. It's based of the Krypton branch as that is the most stable right now. 

https://github.com/robweber/xbmcbackup/tree/krypton_guisettings_fix


RE: [Release] Backup (formerly XBMC Backup) - elhifinio - 2019-12-01

(2019-11-30, 17:37)robweber Wrote:
(2019-11-29, 18:45)elhifinio Wrote: oh and yes, it's on a restore

Ok, I can't find the exact setting causing the error as it isn't shown, but definitely one of the settings has a non-unicode character causing the error. I added a wrapper to try and encode the string before the JSON library reads it to see if that would help. Hopefully you're comfortable with installing a test version to see if this works. Just download the zip file from this link and use "install from zip" in Kodi. It's based of the Krypton branch as that is the most stable right now. 

https://github.com/robweber/xbmcbackup/tree/krypton_guisettings_fix  

Thanks robweber. Unfortunately, still an issue, pls see here: https://paste.kodi.tv/anecoreviq.kodi


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

(2019-12-01, 17:28)elhifinio Wrote:
(2019-11-30, 17:37)robweber Wrote:
(2019-11-29, 18:45)elhifinio Wrote: oh and yes, it's on a restore

Ok, I can't find the exact setting causing the error as it isn't shown, but definitely one of the settings has a non-unicode character causing the error. I added a wrapper to try and encode the string before the JSON library reads it to see if that would help. Hopefully you're comfortable with installing a test version to see if this works. Just download the zip file from this link and use "install from zip" in Kodi. It's based of the Krypton branch as that is the most stable right now. 

https://github.com/robweber/xbmcbackup/tree/krypton_guisettings_fix   

Thanks robweber. Unfortunately, still an issue, pls see here: https://paste.kodi.tv/anecoreviq.kodi 
Thanks for trying that. I created a bug on GitHub for this so we can keep better track of it there. I did some changes to the test branch based on the log: https://github.com/robweber/xbmcbackup/issues/162


RE: [Release] Backup (formerly XBMC Backup) - elhifinio - 2019-12-01

(2019-12-01, 18:08)robweber Wrote:
(2019-12-01, 17:28)elhifinio Wrote:
(2019-11-30, 17:37)robweber Wrote: Ok, I can't find the exact setting causing the error as it isn't shown, but definitely one of the settings has a non-unicode character causing the error. I added a wrapper to try and encode the string before the JSON library reads it to see if that would help. Hopefully you're comfortable with installing a test version to see if this works. Just download the zip file from this link and use "install from zip" in Kodi. It's based of the Krypton branch as that is the most stable right now. 

https://github.com/robweber/xbmcbackup/tree/krypton_guisettings_fix   

Thanks robweber. Unfortunately, still an issue, pls see here: https://paste.kodi.tv/anecoreviq.kodi  
Thanks for trying that. I created a bug on GitHub for this so we can keep better track of it there. I did some changes to the test branch based on the log: https://github.com/robweber/xbmcbackup/issues/162 

cannot login into GitHub so I post the new log here: https://paste.kodi.tv/ozojufovuy.kodi


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

(2019-12-01, 19:21)elhifinio Wrote:
(2019-12-01, 18:08)robweber Wrote:
(2019-12-01, 17:28)elhifinio Wrote: Thanks robweber. Unfortunately, still an issue, pls see here: https://paste.kodi.tv/anecoreviq.kodi  
Thanks for trying that. I created a bug on GitHub for this so we can keep better track of it there. I did some changes to the test branch based on the log: https://github.com/robweber/xbmcbackup/issues/162  

cannot login into GitHub so I post the new log here: https://paste.kodi.tv/ozojufovuy.kodi 
Sorry, I should have mentioned to please run that with Debug logging turned on. The log statement won't show up without it. It should be in the log right before that error is thrown.


RE: [Release] Backup (formerly XBMC Backup) - elhifinio - 2019-12-01

(2019-12-01, 19:23)robweber Wrote:
(2019-12-01, 19:21)elhifinio Wrote:
(2019-12-01, 18:08)robweber Wrote: Thanks for trying that. I created a bug on GitHub for this so we can keep better track of it there. I did some changes to the test branch based on the log: https://github.com/robweber/xbmcbackup/issues/162  

cannot login into GitHub so I post the new log here: https://paste.kodi.tv/ozojufovuy.kodi  
Sorry, I should have mentioned to please run that with Debug logging turned on. The log statement won't show up without it. It should be in the log right before that error is thrown. 
mhmm...no difference with debugging enabled: https://paste.kodi.tv/fegobetuva.kodi


RE: [Release] Backup (formerly XBMC Backup) - elhifinio - 2019-12-01

(2019-12-01, 19:29)elhifinio Wrote:
(2019-12-01, 19:23)robweber Wrote:
(2019-12-01, 19:21)elhifinio Wrote: cannot login into GitHub so I post the new log here: https://paste.kodi.tv/ozojufovuy.kodi  
Sorry, I should have mentioned to please run that with Debug logging turned on. The log statement won't show up without it. It should be in the log right before that error is thrown.  
mhmm...no difference with debugging enabled: https://paste.kodi.tv/fegobetuva.kodi 
adding some more lines: https://paste.kodi.tv/otixijuday.kodi