[Release] Backup (formally XBMC Backup)

  Thread Rating:
  • 7 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nokodemus Offline
Junior Member
Posts: 37
Joined: Apr 2015
Reputation: 0
Post: #1246
(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
(This post was last modified: 2016-02-01 15:18 by nokodemus.)
find quote
santos954 Offline
Junior Member
Posts: 17
Joined: Oct 2015
Reputation: 0
Post: #1247
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?
find quote
ed_davidson Offline
Fan
Posts: 320
Joined: Jan 2012
Reputation: 4
Post: #1248
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.
find quote
ed_davidson Offline
Fan
Posts: 320
Joined: Jan 2012
Reputation: 4
Post: #1249
(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.
(This post was last modified: 2016-02-04 07:29 by ed_davidson.)
find quote
fletch101e Offline
Junior Member
Posts: 22
Joined: Jan 2016
Reputation: 0
Post: #1250
Any idea where I can get instructions for enabling Google drive?

The ones listed at https://developers.google.com/drive/v3/w...art-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.
find quote
fletch101e Offline
Junior Member
Posts: 22
Joined: Jan 2016
Reputation: 0
Post: #1251
(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/w...art-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/w...art/python
find quote
fletch101e Offline
Junior Member
Posts: 22
Joined: Jan 2016
Reputation: 0
Post: #1252
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..
find quote
fletch101e Offline
Junior Member
Posts: 22
Joined: Jan 2016
Reputation: 0
Post: #1253
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.
find quote
ed_davidson Offline
Fan
Posts: 320
Joined: Jan 2012
Reputation: 4
Post: #1254
You should be able to browse for that location in the settings.
find quote
thekid Offline
Junior Member
Posts: 27
Joined: Jan 2014
Reputation: 0
Post: #1255
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<--
(This post was last modified: 2016-02-13 07:13 by thekid.)
find quote
thekid Offline
Junior Member
Posts: 27
Joined: Jan 2014
Reputation: 0
Post: #1256
any ideas?
find quote
ed_davidson Offline
Fan
Posts: 320
Joined: Jan 2012
Reputation: 4
Post: #1257
I'm not sure, but maybe try compressing the backup.
find quote
keynet Offline
Junior Member
Posts: 13
Joined: Feb 2015
Reputation: 0
Post: #1258
(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!
find quote
pusb87 Offline
Junior Member
Posts: 47
Joined: Sep 2015
Reputation: 5
Post: #1259
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
find quote
plonka Offline
Junior Member
Posts: 6
Joined: Feb 2016
Reputation: 0
Post: #1260
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?
find quote
Post Reply