mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-21 13:07:01 +01:00
1
Sample Custom File
Rob edited this page 2019-08-26 17:43:03 -05:00
Both the Simple and 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.