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) - kpitao - 2015-06-26

Well .... I want to backup before an upgrade, so I don't have to risked loosing anything....

How do I get a debug log?

Thanks


[Release] Backup (formally XBMC Backup) - ed_davidson - 2015-06-26

(2015-06-26, 22:35)robweber Wrote: I attempted to push a fix for the Zip file archives giving a "no path found" error. Instead of using the extractAll function I'm extracting one at a time. Had 100% success with this in my test environment. As a bonus I can now show a progress bar for the extraction so you can tell if it's hung or working. Anyone willing to try check out github. I'm going to run more tests and wait for any feedback before pushing to the main repo.

@kpitao - you'll have to upload a debug log. "Script failed" isn't very descriptive so I can't speculate on what is going on. Gotham is an older release as well - trying Helix might work better for you.

I will rob and let you know.


[Release] Backup (formally XBMC Backup) - ed_davidson - 2015-06-26

Worked great on Android. Good fix.


RE: [Release] Backup (formally XBMC Backup) - kpitao - 2015-06-27

Ok, I got it..... but should I posted all of it?

It's 3700 lines.....


[Release] Backup (formally XBMC Backup) - ed_davidson - 2015-06-27

(2015-06-27, 00:04)kpitao Wrote: Ok, I got it..... but should I posted all of it?

It's 3700 lines.....

NO. upload to the cloud and post the link.


RE: [Release] Backup (formally XBMC Backup) - kpitao - 2015-06-27

I guess this is want you want ....

http://goo.gl/k3D99H

Sorry new to this


RE: [Release] Backup (formally XBMC Backup) - kurai - 2015-06-27

(2015-06-19, 22:10)robweber Wrote: First off - the zip file restore showing up as "Destination does not exist". I've been able to recreate this but not reliably. It seems like a 50/50 thing. My initial guess was that the OS was simply not reporting the files as "ready" due to them being extracted, but even a temporary sleep() call on the thread didn't seem to fix it. It's very random, sometimes it works and sometimes it doesn't. It is clear that if you just wait (watch a movie, whatever) it will pick it up the next time. I think this is because at that point the files already exist, they don't get cleaned up after the crash and are already there. Still working on this so hang tight I guess.

(2015-06-14, 17:57)kurai Wrote:
(2015-06-13, 23:24)Drdan Wrote: Hi Rob,
Thanks much for the backup addon. It works great on my minix android box.
I'm writing to request a "feature". What I need is the ability for the addon to recurse into all sub directories of the chosen custom directory. Currently I get everything in the custom folder but nothing, except the folder name, from any folders contained within the custom directory. I use 2 each 1tb local external drives for backup.
Thanks again for all the great work,
Dr Dan
+1 to this request from me.

I'm getting the same issue - when selecting a directory as custom backup target I was only getting the first level of contained subdirectories backed up, and they were empty. At first I thought it was a problem with hidden dirs (display hidden files option is turned on in Kodi appearance settings) like .config (on Linux based OpenElec), but creating a link (with ln -s) from .config to normal "un-hidden" folder /storage/testconfigbackup and using that as the custom target still gave the same issue.

Is there some technical reason I've missed that means recursing through sub-directories of a custom target is impossible ?

Thanks for pointing this out. I did some testing and you are sure right, it doesn't work. I think I pushed a fix to github. If you're the type of person that doesn't mind running off the "master" download it and try it out. I don't want to do a repo pull just yet as I'm hoping to fix the zip file restore problem as well.

Sorry for the delay in getting back to this thread ...

I can also confirm that in the Github-master v1.0.6 version the sub-directory recursing of custom targets now works properly.

Thanks for the fix.


RE: [Release] Backup (formally XBMC Backup) - ed_davidson - 2015-06-27

Just got a script error whilst using 1.0.6

https://www.dropbox.com/s/0ne3vgya5m0cdx6/spmc.log?dl=1

here's another one https://www.dropbox.com/s/nnumpacret6kqke/spmc1.log?dl=1

I tried uninstalling all backup addons then the new 1.0.6 didn't work.

Then installed 1.0.5 agian and that didn't work either.

Might be another issue, not the backup addon.


RE: [Release] Backup (formally XBMC Backup) - robweber - 2015-06-27

(2015-06-27, 00:45)kpitao Wrote: I guess this is want you want ....

http://goo.gl/k3D99H

Sorry new to this

Thanks for the log. I can't find any reference to script.xbmcbackup being run or even started in that log file. Is it even installed? There should be log entries when the service starts on startup as well as entries when you actually try and run the addon. Even if it crashes it will log something. Doesn't look like it is even there.

(2015-06-27, 18:13)ed_davidson Wrote: Just got a script error whilst using 1.0.6

https://www.dropbox.com/s/0ne3vgya5m0cdx6/spmc.log?dl=1

here's another one https://www.dropbox.com/s/nnumpacret6kqke/spmc1.log?dl=1

I tried uninstalling all backup addons then the new 1.0.6 didn't work.

Then installed 1.0.5 agian and that didn't work either.

Might be another issue, not the backup addon.

I see several mentions of this:

Code:
10:01:23 T:1993205032  NOTICE: [Errno 28] No space left on device: '/storage/sdcard0/Android/data/com.semperpax.spmc/files/.spmc/temp/111111111111/addons/metadata.themoviedb.org/resources/language/Estonian'

Lots of things are trying to read/write and all of them report no space left on device. Might be another issue you'll want to hunt down.


[Release] Backup (formally XBMC Backup) - ed_davidson - 2015-06-27

Okay. Thanks.


RE: [Release] Backup (formally XBMC Backup) - kpitao - 2015-06-27

(2015-06-27, 19:22)robweber Wrote: [quote='kpitao' pid='2039028' dateline='1435358707']
I guess this is want you want ....

http://goo.gl/k3D99H

Sorry new to this

Thanks for the log. I can't find any reference to script.xbmcbackup being run or even started in that log file. Is it even installed? There should be log entries when the service starts on startup as well as entries when you actually try and run the addon. Even if it crashes it will log something. Doesn't look like it is even there.

It's installed and I ran twice.... please look again, look line 2688 (first time) and line 3228 (second time)...

Thanks again


RE: [Release] Backup (formally XBMC Backup) - robweber - 2015-06-28

(2015-06-27, 21:06)kpitao Wrote:
(2015-06-27, 19:22)robweber Wrote: [quote='kpitao' pid='2039028' dateline='1435358707']
I guess this is want you want ....

http://goo.gl/k3D99H

Sorry new to this

Thanks for the log. I can't find any reference to script.xbmcbackup being run or even started in that log file. Is it even installed? There should be log entries when the service starts on startup as well as entries when you actually try and run the addon. Even if it crashes it will log something. Doesn't look like it is even there.

It's installed and I ran twice.... please look again, look line 2688 (first time) and line 3228 (second time)...

Thanks again

What you ran is not this addon. You're running the "XML Backup" addon created by Kinkin. Not sure where it is from but I can't find reference to it on the official Kodi Repo. I did do a google search and found the source code on this site: http://addons.tvaddons.ag/show/plugin.video.XMLbackup/. I looked through it quick as I was curious. Looks like that addon only backs up XML files from the addon_data and userdata directories. These are the core config files but don't include your database or anything. It is also using the built in python shutil library to do the copying. This isn't bad but it means the backup directory you specify has to be a local directory, not network paths. From the error you're seeing it looks like you tried to use an SMB path. That won't work the way the addon is written. That's about as much help as I can give as this was created by someone else. If there is a forum for that addon you might try posting there.


RE: [Release] Backup (formally XBMC Backup) - kpitao - 2015-06-28

ok ... Thanks for your help


[Release] Backup (formally XBMC Backup) - ed_davidson - 2015-06-28

My issue was related to the space on my device. All fixed now thanks.


RE: [Release] Backup (formally XBMC Backup) - berto. - 2015-06-30

My backup has been trying to run all day. It is set to run automatically at 4:00 AM, and when I turned on my TV at 8:30PM I saw this:

Quote:Backup - Mode: Backup
Gathering file list......

I checked the file logs, and the error seems to be:

Quote:SMBFile->Open: Unable to open file : 'smb://BERTO/Kodi%20backup/201506290400/xbmcbackup.val'
unix_err:'16' error : 'Invalid argument'

I think my PC (backup location) may have been asleep when the backup started. Could that have caused this problem? Wouldn't the backup keep trying until the PC woke up? The PC was definitely awake throughout the day, and in particular at 8:30 PM when I was using my TV.

Running OSMC 1.0 on RPi2