[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) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
RE: [Release] XBMC Backup - robweber - 2014-10-10 I'll need a debug log of the restore you're trying to do. Can't really do much without one. RE: [Release] XBMC Backup - D.Z.G - 2014-10-11 How do I create one? RE: [Release] XBMC Backup - robweber - 2014-10-13 (2014-10-11, 17:34)D.Z.G Wrote: How do I create one? http://wiki.xbmc.org/?title=Log_file - several methods to choose from Google Drive Functionality For anyone interested in testing this I've attempted to add functionality for Google Drive. Until this is all in the official repo you'll have to jump through a few hoops but might be worth it. The more testing done the faster this can be rolled out. Step 1 - You'll have to manually install the googleapi module. There were a lot of dependencies and stuff for this so I rolled them in to their own addon: https://github.com/robweber/script.module.googleapi . Just download the zip and install into XBMC. Step 2 - Download the "google_drive" branch of the addon. You might want to uninstall any current version of your system as the addon ids are the same. https://github.com/robweber/xbmcbackup/tree/google_drive There are instructions in the README file but I'll cut/paste them here. Very similiar to Dropbox in that you have to have a Google API account setup and then oauth your account via a URL. Something I've noticed in testing is that the Drive API will sometimes block requests as there is a limit for "free" accounts on how many per second. It didn't happen often but it did happen. The API is also kind of slow, probably another limitation of the non-paid account. Using the "compress backups" option might be the best choice since you are minimizing the number of files that actually need to get sent to the cloud. Code: Using the Google Drive target is very similar to the Dropbox one. You must create a Google API project and authenticate your account via the id and secret. Instructions for creating the Google API for Google Drive can be found here. You'll need the client id and client secret generated for the addon settings (https://developers.google.com/drive/web/quickstart/quickstart-python). You only need to follow Step 1. RE: [Release] XBMC Backup - schumi2004 - 2014-10-16 For some reason this addon only backups first level (from root) folders and files, second level folders/files won't be uploaded to Dropbox When you open a folder it's just empty RE: [Release] XBMC Backup - robweber - 2014-10-16 (2014-10-16, 19:00)schumi2004 Wrote: For some reason this addon only backups first level (from root) folders and files, second level folders/files won't be uploaded to Dropbox DEBUG LOG! I'm not trying to pick on you here but getting error reports is very frustrating with no information to do with it. What exactly do you expect me to respond with? "Yes - you're right I coded this to not do anything on purpose" or "I magically figured out it is because you didn't setup your SMB server right, or your internet connection went out" How am I supposed to know anything without a log of what actually happened. I'm willing to help anyone with a problem but please go through the proper steps, otherwise this is just a thread full of complaints. RE: [Release] XBMC Backup - schumi2004 - 2014-10-16 Debug log was on my todo list, maybe I should have mentioned that in post /edit: Nothing usefull in Debug log. No errors or such. http://pastebin.com/4xTdCGWv System running OpenELEC Generic x86_64 Helix beta 5 RE: [Release] XBMC Backup - robweber - 2014-10-17 Thanks for the log. Glad you had a sense of humor about the message. Just seems there are a lot of "its broken" with no follow-up messages lately. I guess yours was the stray that broke the camel's back. Looking at what you posted I guess I'm a little confused. Is this the full run of the addon? I don't see the start where it normally lists the full path and then goes through it's file add process. It seems to be a snippet from somewhere in the middle. I do see your custom directory. Is that the one that isn't working or is the whole thing only putting up the first level folders? One thing to note about the Dropbox stuff is a slight caveat to their upload process. Here is the code from the vfs.py file: Code: def put(self,source,dest,retry=True): You'll see that it tries to put the file, and if that fails it tries again. If that fails we just give up and return "False" for the result. I think it's an error on the Dropbox side because you can continue to put the file indefinitely and it will never make it in some cases. Perhaps these "false" returns should be logged. I'll make a note to add that to the debug logging. RE: [Release] XBMC Backup - schumi2004 - 2014-10-17 It's not uploading for all directory's I'll do another test with and without dropbox and see what happens. It could be a snippet from half way the process, there was so much garbage from other service addon that i only selected the information I thought was relevant. RE: [Release] XBMC Backup - schumi2004 - 2014-10-17 Same behavior on Windows7 test machine. Local storage: http://xbmclogs.com/show.php?id=321093 Strange thing is that it returns a error unable to create D:/ although it writes on that disc (first level only) Remote storage (DropBox): http://xbmclogs.com/show.php?id=321095 RE: [Release] XBMC Backup - robweber - 2014-10-17 That log file error about "error creating d:/" is really weird. It shouldn't be trying to create the root directory. If you could, please download the latest source and try that. Just uninstall the addon version you have now and re-install from this zip file: https://github.com/robweber/xbmcbackup/archive/master.zip RE: [Release] XBMC Backup - schumi2004 - 2014-10-18 (2014-10-17, 22:04)robweber Wrote: That log file error about "error creating d:/" is really weird. It shouldn't be trying to create the root directory. It seems to do even less. (issue still there) Note: All options enabled except for custom folder! When i enabled zip archive http://pastebin.com/drjAPzTb Local storage http://xbmclogs.com/show.php?id=321494 DropBox gives me the same result TreeSize report from source and backup destination RE: [Release] XBMC Backup - robweber - 2014-10-21 Thanks for pointing out the zip archive issue - I'll look in to that. Is your "D" drive seriously mapped as a lowercase "d"? Seems like a weird thing to point out I'm sure but although Windows doesn't care about case - it seems XBMC does. Change the remote directory to "d:/private/" and see what happens. I'm thinking that what it is trying to do is when it calls the "mkdir" command to create the directory we need for the addons it's having some issues resolving the path. It might even be trying to recursively create the directories which is where the "error creating D:\" text comes from. RE: [Release] XBMC Backup - schumi2004 - 2014-10-21 Doesn't make a difference. The uppercase D comes from browsing to the path, with type path the error persist. http://pastebin.com/u7BGquAS RE: [Release] XBMC Backup - robweber - 2014-10-21 Well there is one idea down. It looks like there is no problem creating directories - just files. The XFILE errors are from the underlying xbmc filesystem trying to write the file. Are you absolutely sure XBMC has permission for this directory? Have you tried others just to make sure (like just on a folder on the desktop or something)? RE: [Release] XBMC Backup - Ned Scott - 2014-10-23 With the big rename coming up for v14, which also moves the location of the userdata folder, I want to point people to this add-on as an easy way to backup incase they want to go back to v13. The only thing I've had to do special in my own use is to set up a custom folder backup for my video nodes (wiki) in the userdata folder (userdata/library/), as that didn't seem to get backed up with everything else by default. Any chance on including the library directory by default in the near future? :) |