60 lines
3.6 KiB
YAML
60 lines
3.6 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", "gzip", "lzma", "lzip", "zstd", "snappy", "brotli"
|
|
# Optional. Default value: null. bzip2 support 1-9 (Default: 9). gzip support 0-9 (Default: 9). lzma or lzip support 0-9 (Default: 6).
|
|
# zstd support 0-22 (Default: 3). brotli support 0-11 (Default: unset).
|
|
compress_level: 6
|
|
encrypt_db: false # Optional. Default value: false. Encrypt the database. Warning: The default python sqlite library don't support encrypt, it just ignore encrypt phases.
|
|
db_password: "Password" # Specify the password of the encryped database.
|
|
encrypt_files: false # Optional. Default value: false. Encrypt backup files. The key information will stored in database.
|
|
protect_filename: false # Optional. Default value: false. Use id in database as file name. Only works when encrypt_files is true.
|
|
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.
|
|
encrypt_files: false # Optional
|
|
protect_filename: false # 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.
|
|
encrypt_files: false # Optional.
|
|
protect_filename: false # 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.
|
|
encrypt_files: false # Optional.
|
|
protect_filename: false # Optional
|
|
domains: # optional. Just backup minor domains in localstorage database. Only chromium is tested.
|
|
- some domain
|