Files
game-backuper/example.yaml

48 lines
2.7 KiB
YAML

dest: /path/to/store/backup/files # The programs will store database and backup files in this location
enable_pcre2: false # Optional. Default value: false. Try to use PCRE2 first. PCRE2 may be a little slower than internal regex library.
remove_old_files: true # Optional. Default value: true. Remove unneeded backup files which already deleted in source tree when backuping files.
ignore_hidden_files: true # Optional. Default value: true. Whether to ignore files which its name starts with ".". Only effect folder which type is "path".
compress_method: "bzip2" # Optional. Default value: null. Supported value: "bzip2"
compress_level: 6 # Optional. Default value: null. bzip2 support 1-9 (Default: 9).
programs:
- name: Your program name # This name is used to identify different application.
base: /path/to/save/path # Must be absoulte path.
enable_pcre2: false # Optional.
remove_old_files: true # Optional.
ignore_hidden_files: true # Optional.
compress_method: null # Optional.
compress_level: null # Optional.
files:
- BGI.gdb # path to a file/folder. All subfolders will include if it is a folder. Must be relative path.
- type: path
path: folder # path to a file/folder. All subfolders will include if it is a folder. Must be relative path if name not found.
name: folder2 # optional. path to the backup files. Shoule be a relative path
enable_pcre2: false # Optional.
remove_old_files: true # Optional.
ignore_hidden_files: true # Optional.
compress_method: null # Optional.
compress_level: null # Optional.
excludes: # Optional. Exculde some files. Only effected when path is a folder.
- data.db # Releative path
- /path/to/data.db # Absolute path
- type: wildcards
rule: "*/*.db"
- type: regex
rule: "\\d+\\.db"
includes: # Optional. Only include some files. Only effected when path is a folder.
- data.db
- /path/to/data.db
- type: wildcards
rule: "*/*.db"
- type: regex
rule: "\\d+\\.db"
- type: leveldb # module plyvel is needed to support this type. This will store leveldb database to a single file database (sqlite3)
path: leveldb # path to leveldb. Must be relative path.
name: dest # optional. path to the backup files. Shoule be a relative path
enable_pcre2: false # Optional.
remove_old_files: true # Optional.
compress_method: null # Optional.
compress_level: null # Optional.
domains: # optional. Just backup minor domains in localstorage database. Only chromium is tested.
- some domain