mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 04:45:49 +01:00
Created Sample Custom File (markdown)
parent
46f3cfc640
commit
03f0996d00
34
Sample-Custom-File.md
Normal file
34
Sample-Custom-File.md
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
Both the Simple and [Advanced Editor](https://github.com/robweber/xbmcbackup/wiki/Advanced-Editor) read in the list of files to Backup via a custom_paths.json file. This file lists the directories to be included in each backup set. Each set can have included or excluded directories. Additionally included directories can be recursed true/false. An example file for the simple pre-sets is below:
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"addons":{
|
||||||
|
"root":"special://home/addons",
|
||||||
|
"dirs":[
|
||||||
|
{
|
||||||
|
"type":"include",
|
||||||
|
"path":"special://home/addons",
|
||||||
|
"recurse":true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type":"exclude",
|
||||||
|
"path":"special://home/addons/packages"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"addon_data":{
|
||||||
|
"root":"special://home/userdata/addon_data",
|
||||||
|
"dirs":[
|
||||||
|
{
|
||||||
|
"type":"include",
|
||||||
|
"path":"special://home/userdata/addon_data",
|
||||||
|
"recurse":true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Each directory set will create a folder within the backup for it's files. These are done separately, even if sets are pulling from the same folder.
|
||||||
|
|
||||||
|
Also during the backup the file selections are recorded in the backup validation file. These are used on restore to restore directories that actually were included in the backup.
|
Loading…
Reference in New Issue
Block a user