diff --git a/Sample-Custom-File.md b/Sample-Custom-File.md new file mode 100644 index 0000000..66974e8 --- /dev/null +++ b/Sample-Custom-File.md @@ -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. \ No newline at end of file