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 (formally XBMC Backup) - nokodemus - 2016-02-01

(2016-01-31, 20:53)melons2 Wrote: My backups over time have grown from around 6 or 7gb to (yesterday) 39.5gb.
The addons directory accounting for 9.7gb and userdata being about 31gb of that the directory thumbnails is 21 gb.
Is there anything that I can do to reduce the size of my backup and the time it takes?


Thanks

Hi

Just untick/deactivate "Thumbnails/Fanart" in the backup addon's settings (file selection), so your backup will get rid of the 21 GB.
After restoring this backup in the future the only disadvantage is, that all the graphics will have to recache/reload, which means they might not appear instantly if you browse through your libraries.

But they will reload/recache one by one as soon as they're requested for the first time Wink

I also got rid of the thumbnails in my backups due to their large size and have restored those backups many times without any problems Wink


RE: [Release] Backup (formally XBMC Backup) - santos954 - 2016-02-04

Will using restore delete everything i have already installed and then replace it? is it possible to restore a configuration but keep my currently installed library untouched?


[Release] Backup (formally XBMC Backup) - ed_davidson - 2016-02-04

The backup addon will over write the files that are currently there with files in the backup OF THE SAME NAME. If the files are not in the restore files then they will not over write files that are there. You will only add or change files with this addon, NOT delete any.


[Release] Backup (formally XBMC Backup) - ed_davidson - 2016-02-04

(2016-02-04, 05:21)santos954 Wrote: Will using restore delete everything i have already installed and then replace it? is it possible to restore a configuration but keep my currently installed library untouched?

Simple answer is no to your first question and yes to your second question.


RE: [Release] Backup (formally XBMC Backup) - fletch101e - 2016-02-07

Any idea where I can get instructions for enabling Google drive?

The ones listed at https://developers.google.com/drive/v3/web/quickstart/quickstart-python

give me a 404

I was able to find the main developer page, and turned on the api, but it won't give me the credentials until I give it more details that I am not sure how to answer.

Thanks.


RE: [Release] Backup (formally XBMC Backup) - fletch101e - 2016-02-07

(2016-02-07, 19:17)fletch101e Wrote: Any idea where I can get instructions for enabling Google drive?

The ones listed at https://developers.google.com/drive/v3/web/quickstart/quickstart-python

give me a 404

I was able to find the main developer page, and turned on the api, but it won't give me the credentials until I give it more details that I am not sure how to answer.

Thanks.

I found the instructions...if anyone is looking for the correct link it is here:

https://developers.google.com/drive/v3/web/quickstart/python


RE: [Release] Backup (formally XBMC Backup) - fletch101e - 2016-02-08

Now I am getting this error in the kodi log:
AuthenticationError: OAuth2 code exchange failed: invalid_client

I saw a couple of posts with the same issue and 2 of them said the first time you create the google api account it doesn't work and you delete and recreate the project it starts working.

Is the Dropbox solution any more stable than googles? I don't want to start using google/depend on it if it can flake out like this..


RE: [Release] Backup (formally XBMC Backup) - fletch101e - 2016-02-08

Ok I deleted and recreated the project and this time I got a totally different error that others say is due to a time mismatch.

So I gave up on trying to use Google and gave Dropbox a try and it worked fine the very first time.

Only issue is it is slow most likely due to my low speed internet connection but I am good to go.

But for the future, what about a smb drive that is shared on my network? Does backup support that and if so, what is the command syntax?

Thanks.


[Release] Backup (formally XBMC Backup) - ed_davidson - 2016-02-09

You should be able to browse for that location in the settings.


RE: [Release] Backup (formally XBMC Backup) - thekid - 2016-02-13

Hey guys maybe you can help me because its driving me nuts!

Basically. I use my dropbox with this backup addon to restore some of my addons/data files into Kodi 15.2. It has been working fine for months but all of a sudden it stopped working. I am running it on an Amazon Fire TV android box.

I click Restore and it starts gathering files.. then when it starts installing the files it always seems to freeze up/time out after 30% or so giving a backup error alert(it happens even when restoring 1 addon). I download the same files from my dropbox to my PC fine and even contacted dropbox to check over my account and everything is fine. I tried creating a new API on dropbox but issue remains. It happens on a clean kodi 15.2 (cleared data/cache) and also on v16RC. I tried kodi backup addon V1.0.5 as well as the latest 1.0.6 but no luck. I also tried resetting the fire tv to factory settings but still didnt work. Its also happening to my friend in a different state who was linked to my dropbox. I did a speed test and my network speeds are good. I don't know what else to do at this point. My log is below. Any ideas?? thanks!

I just tried it on a different chinese andoid box running xbmc 13.2 and the same issue happens. It sounds like the issue has to be dropbox itself but I can download the files from drop box to my pc fine and they checked everything out and said its fine on their end.. totally stumped here.


20:13:37 T:18446744072306801208 NOTICE: script.xbmcbackup-1.0.5: Starting
20:13:40 T:18446744072306801208 NOTICE: script.xbmcbackup-1.0.5: Local Dir: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/
20:13:40 T:18446744072306801208 NOTICE: script.xbmcbackup-1.0.5: Remote Dir: /54345354545/
20:13:40 T:18446744072306801208 NOTICE: script.xbmcbackup-1.0.5: Mode - Restore
20:13:42 T:18446744072306801208 NOTICE: script.xbmcbackup-1.0.5: Creating Files List
20:15:21 T:18446744072306801208 NOTICE: script.xbmcbackup-1.0.5: Writing files to: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/
20:15:21 T:18446744072306801208 NOTICE: script.xbmcbackup-1.0.5: Source: /54345354545/
20:15:26 T:18446744072306801208 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'resources.lib.dropbox.rest.ErrorResponse'>
Error Contents: [500] u'Internal Server Error'
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/default.py", line 73, in <module>
backup.run(mode)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 426, in run
self.backupFiles(fileGroup['files'],self.remote_vfs,self.xbmc_vfs)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 464, in backupFiles
wroteFile = source.get_file(aFile,dest.root_path + aFile[len(source.root_path):])
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/vfs.py", line 244, in get_file
f = self.client.get_file(source).read()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/dropbox/client.py", line 391, in get_file
return self.rest_client.request("GET", url, headers=headers, raw_response=True)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/dropbox/rest.py", line 250, in request
return cls.IMPL.request(*n, **kw)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/dropbox/rest.py", line 183, in request
raise ErrorResponse®
ErrorResponse: [500] u'Internal Server Error'
-->End of Python script error report<--


RE: [Release] Backup (formally XBMC Backup) - thekid - 2016-02-16

any ideas?


[Release] Backup (formally XBMC Backup) - ed_davidson - 2016-02-16

I'm not sure, but maybe try compressing the backup.


RE: [Release] Backup (formally XBMC Backup) - keynet - 2016-02-19

(2015-12-14, 16:00)robweber Wrote: I was looking through the Jarvis bug fixes and saw this item: Fixed: don’t use cached results for dir checks in our Python API.

I suffered the restore problem too - Raspberry Pi (1) Kodi 16 beta (Dec 4 2015 - last of the series)
This is a local samba share, 200M of data

11:56:22 93.238808 T:1580962720 NOTICE: script.xbmcbackup-1.0.6: Starting
11:56:24 95.213280 T:1580962720 NOTICE: script.xbmcbackup-1.0.6: Local Dir: /storage/.kodi/
11:56:24 95.219070 T:1580962720 NOTICE: script.xbmcbackup-1.0.6: Remote Dir: smb://HA-SERVER/backup/kodi/Bed1/
11:56:24 95.237877 T:1580962720 NOTICE: script.xbmcbackup-1.0.6: Mode - Restore
11:56:24 95.239716 T:1580962720 NOTICE: script.xbmcbackup-1.0.6: copying zip file: 201602010000.zip
11:56:24 95.241837 T:1580962720 NOTICE: script.xbmcbackup-1.0.6: Writing files to: /storage/.kodi/temp/
11:56:24 95.242790 T:1580962720 NOTICE: script.xbmcbackup-1.0.6: Source: smb://HA-SERVER/backup/kodi/Bed1/
11:56:24 95.313400 T:1580962720 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: [Errno 2] No such file or directory: '/storage/.kodi/temp/201602010000.zip'
Traceback (most recent call last):
File "/storage/.kodi/addons/script.xbmcbackup/default.py", line 73, in <module>
backup.run(mode)
File "/storage/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 311, in run
zip_vfs = ZipFileSystem(xbmc.translatePath("special://temp/"+ self.restore_point),'r')
File "/storage/.kodi/addons/script.xbmcbackup/resources/lib/vfs.py", line 84, in __init__
self.zip = zipfile.ZipFile(rootString,mode=mode,compression=zipfile.ZIP_DEFLATED,allowZip64=True)
File "/home/neil/projects/OpenELEC.tv/build.OpenELEC-RPi.arm-7.0-devel/Python-2.7.10/.install_pkg/usr/lib/python2.7/zipfile.py", line 756, in __init__
IOError: [Errno 2] No such file or directory: '/storage/.kodi/temp/201602010000.zip'
-->End of Python script error report<--
11:57:58 189.407669 T:1964236800 NOTICE: Samba is idle. Closing the remaining connections


So reading what you said, I manually copied the backup file to /storage/.kodi/temp/201602010000.zip, then started a restore, and it started. This kind-of confirms there's an issue with file finding. It didn't restore properly the first time, I needed to reboot and restore again, then it restored, but got stuck on the cleanup (maybe it couldn't delete the file I added).

It mostly restored, missed weather config, and more importantly lircd.conf, and of course my config.txt in the boot partition. Good thanks!


RE: [Release] Backup (formally XBMC Backup) - pusb87 - 2016-02-24

Hi @robweber

any chance you can think of starting to look at your excellent backup program for Kodi 17 Krypton now that Jarvis has been released. It seems to work but doesn't give any progress information when doing so.

Im using Krypton to take advantage of improved passthrough on android system,

thanks
pusb87


RE: [Release] Backup (formally XBMC Backup) - plonka - 2016-02-25

This is one mega thread and has taken some wading through. I have a scenario that is slightly different to anything thus far discussed and am wondering if there is the means of doing it using “Backup”. I share my Kodi build with family and want to share a single backup source that I can host on a server ensuring the integrity of the build meaning I maintain the up-to-date version there for family to download and overwrite their existing version without the need for them to upload their Kodi build at all.

Is this something that can be done and if so how?