add bzip2 compress support for path type files

This commit is contained in:
2021-09-12 12:13:59 +08:00
parent 875e39a2c9
commit 8249473755
7 changed files with 207 additions and 8 deletions

View File

@@ -2,20 +2,26 @@ dest: /path/to/store/backup/files # The programs will store database and backup
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
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
@@ -33,7 +39,9 @@ programs:
- 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
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