[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
|
RE: [Release] Backup (formally XBMC Backup) - robweber - 2015-08-20 Even though you have all the addon files as required in the zip - it still has several dependencies that the addon needs to run. Normally Kodi tries to go out the internet and get these from the repo. If it can't you get the error you're seeing. These dependencies, as listed in the addon.xml file, are: Code: <requires> The xbmc.python one has to stay as that is the Kodi python lib; however the rest only apply for using Google Drive as a target. If you aren't planning on doing this, then just erase these from the addon.xml file if you really need this to install without internet. [Release] Backup (formally XBMC Backup) - ed_davidson - 2015-08-21 That makes perfect sense now. RE: [Release] Backup (formally XBMC Backup) - MrNice - 2015-08-21 Thanks robweber, I deleted the 5 lines, keeping only xbmc.python line. Install was fine. Now when I start Backup, I get the error message: Backup error See log Part of the log is: Code: 00:02:22 142.318115 T:1782576192 NOTICE: Previous line repeats 1 times. I'd guess you know what happen. RE: [Release] Backup (formally XBMC Backup) - mattmartinolc - 2015-08-21 Is there an easy way to add a line of code that reboots the system upon completion of a restore? RE: [Release] Backup (formally XBMC Backup) - robweber - 2015-08-21 (2015-08-21, 17:42)MrNice Wrote: Thanks robweber, I suppose that's what I get for not testing what I recommended. I thought that libraries would only get called if you tried to use them. They are being loaded when the script runs regardless via import statements. In theory you could track down everywhere they are and remove them, but it will be a lot of check-test-try again on your end. If the addon ever changes and you want the new version you'd have to do it all over again. An alternative would be to take a working install (on a computer that has the internet) and package the addon plus all the other dependencies an "offline" install. You'd have to copy over the dependencies first, then the Backup addon. I guess that is assuming they themselves don't have odd dependencies you'd then have to hunt down........ (2015-08-21, 18:46)mattmartinolc Wrote: Is there an easy way to add a line of code that reboots the system upon completion of a restore? Is this something you'd want after a scheduled backup or every backup? I could change the settings for the scheduler to read "Post-Backup Action" and include Shutdown/Restart as an action there. If you're in a hurry just change line 73 of scheduler.py to read "Restart()" rather than shutdown. Again, this only applies to the scheduler. RE: [Release] Backup (formally XBMC Backup) - mattmartinolc - 2015-08-21 (2015-08-21, 20:10)robweber Wrote:(2015-08-21, 18:46)mattmartinolc Wrote: Is there an easy way to add a line of code that reboots the system upon completion of a restore? Thanks for the fast reply! I don't use the scheduler - only manual backup / restore. Just need the quickest modification that will restart the system on completion. RE: [Release] Backup (formally XBMC Backup) - MrNice - 2015-08-22 (2015-08-21, 20:10)robweber Wrote:The objective was to restore the wifi settings in a new install to get network.(2015-08-21, 17:42)MrNice Wrote: Thanks robweber, In fact Backup doesn't save the file /storage/.cache/connman/wifi_xxxxxx_managed_psk So I did it manually, copied it from working install to a usb HDD and another copy to the new install with file manager (hidden files activated) and I got the connexion. From that I installed Backup from Internet and did a restore. Thanks for your help RE: [Release] Backup (formally XBMC Backup) - DJB628 - 2015-08-22 Does this backup process also restore Shortcuts, I assume not as I guess it depends of the skin you are using, but I'd figure I'd ask [Release] Backup (formally XBMC Backup) - ed_davidson - 2015-08-22 It will as long as you perform a forced shutdown of kodi. On media type boxes the easiest way is to just pull the power to the box when the restore has finished without doing anything else. RE: [Release] Backup (formally XBMC Backup) - mattmartinolc - 2015-08-23 (2015-08-21, 20:10)robweber Wrote:(2015-08-21, 18:46)mattmartinolc Wrote: Is there an easy way to add a line of code that reboots the system upon completion of a restore? Would I be able to put "xbmc.executebuiltin('Restart()')" in the code somewhere to reboot after a manual (unscheduled) restore? RE: [Release] Backup (formally XBMC Backup) - robweber - 2015-08-24 (2015-08-23, 23:11)mattmartinolc Wrote:(2015-08-21, 20:10)robweber Wrote:(2015-08-21, 18:46)mattmartinolc Wrote: Is there an easy way to add a line of code that reboots the system upon completion of a restore? Yes, in the default.py file add that command on a new line immediately after line 73. You'll also want to add "import xbmc" at the top. I'm assuming you know a little about python to get the formatting right. RE: [Release] Backup (formally XBMC Backup) - mattmartinolc - 2015-08-25 (2015-08-24, 22:23)robweber Wrote:(2015-08-23, 23:11)mattmartinolc Wrote:(2015-08-21, 20:10)robweber Wrote: Is this something you'd want after a scheduled backup or every backup? I could change the settings for the scheduler to read "Post-Backup Action" and include Shutdown/Restart as an action there. If you're in a hurry just change line 73 of scheduler.py to read "Restart()" rather than shutdown. Again, this only applies to the scheduler. Added the code, started a backup - failed at 32% RE: [Release] Backup (formally XBMC Backup) - robweber - 2015-08-25 Just to confirm - the backup finished before you did this right? Adding that one line doesn't affect the backup running. That code shouldn't execute until the backup process completely exits. RE: [Release] Backup (formally XBMC Backup) - mattmartinolc - 2015-08-25 (2015-08-25, 22:40)robweber Wrote: Just to confirm - the backup finished before you did this right? With the lines of code in there, it fails at 32% while its on /addons/packages and no archive file appears. as you instructed, I put at the very top of the code import xbmc and after line 73 it's xbmc.executebuiltin('Restart()') RE: [Release] Backup (formally XBMC Backup) - mattmartinolc - 2015-08-26 Thanks for all your help man. I am using your application unconventionally so it's been a bit of a learning curve for me making modifications to it. I am actually using it as an updater for media boxes. I make an archive of any changes or updates, then upload to a server, and then the users click update front their front menu and it goes straight to the restore function without them seeing backup/restore option, skipping over the first screen. I tried again taking import xbmc off the top leaving the restart command in, and it fails again but at 99% this time. |