-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.conf
More file actions
58 lines (45 loc) · 2.27 KB
/
Copy pathexample.conf
File metadata and controls
58 lines (45 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Example configuration file for FastFileCheck
[settings]
# Number of threads to use for hashing.
# Set to 0 to automatically use all available cores minus one (default).
threads_count = 0
# Percentage of total system RAM to use for file processing (default is 70%).
# This value should be between 10 and 90.
ram_usage_percent = 70
[database]
# Database directory path (default is '/var/lib/ffc/'). Note that the name is fixed and cannot be changed.
db_path = /var/lib/ffc/
# Maximum size of the LMDB database (in MB, default is 15 MB). Must be greater than 5.
# Ensure this size is sufficient based on the number of files and the data stored.
db_size_mb = 15
# HDD performance tuning (advanced; trades durability for speed). All default to false (safe).
# Enabling these can significantly speed up operations on HDDs.
# See LMDB docs for details.
# - lmdb_nosync: Reduce fsync frequency. Unsafe on sudden power loss.
lmdb_nosync = false
# - lmdb_nometasync: Skip metadata fsyncs. Unsafe on sudden power loss.
lmdb_nometasync = false
# - lmdb_mapasync: Let OS flush dirty pages asynchronously. Unsafe on crash.
lmdb_mapasync = false
# - lmdb_writemap: Use a writeable memory map; faster writes, but riskier with multiple processes.
lmdb_writemap = false
[logging]
# Enable or disable writing information to the log file. Default enabled.
log_to_file_enabled = true
# Log file directory path (default is '/var/log/'). Name will be set to 'ffc.log'n and cannot be changed.
log_path = /var/log/ffc/
[scanning]
# Specifies the maximum depth of directory traversal during scanning (default 10)
# Valid values range from 0 (no recursion, only the starting directory is scanned) to 64 (allows traversal up to 64 levels deep).
max_recursion_depth = 10
# Directories to scan for files (default is '/home' and '/root').
# You can add more directories by separating them with commas.
directories = /home
# Exclude hidden files and directories (those starting with '.'). Default enabled.
exclude_hidden = true
# Exclude directories from scanning (default is empty).
# You can add more directories (full path) by separating them with commas.
exclude_directories =
# Exclude file extensions from scanning.
# You can add more extensions by separating them with commas.
exclude_extensions = .tmp,.swp,.bak,.cache,.log,~,.part