mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +01:00
updated scripting details
parent
54b19f5a75
commit
5f28451c43
@ -7,14 +7,14 @@ Python code:
|
||||
RunScript(script.xbmcbackup,mode=backup)
|
||||
```
|
||||
|
||||
JSON Request:
|
||||
Backup JSON Request:
|
||||
```
|
||||
{ "jsonrpc": "2.0", "method": "Addons.ExecuteAddon","params":{"addonid":"script.xbmcbackup","params":{"mode":"restore","archive":"000000000000"}}, "id": 1 }
|
||||
{ "jsonrpc": "2.0", "method": "Addons.ExecuteAddon","params":{"addonid":"script.xbmcbackup","params":{"mode":"backup"}}, "id": 1 }
|
||||
```
|
||||
|
||||
To script a Restore you need to pass in the archive folder name and the sets within that archive you wish to restore _(version 1.5.0 and greater)_. An example of this would be:
|
||||
To script a Restore you need to pass in the archive folder name and the sets within that archive you wish to restore _(version 1.5.0 and greater)_. Be aware you will still get some pop-ups if there are advanced settings or Always Ask To Restore UI settings is turned on.
|
||||
|
||||
JSON Request:
|
||||
Restore JSON Request:
|
||||
```
|
||||
{ "jsonrpc": "2.0", "method": "Addons.ExecuteAddon","params":{"addonid":"script.xbmcbackup","params":{"mode":"restore","archive":"000000000000","sets":"config|database"}}, "id": 1 }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user