FSCrawler
FSCrawler is a crawler that helps to index binary documents such as PDF, Open Office, MS Office.
- 1Copy the script below
- 2In HexOS, open Apps, find FSCrawler and choose Custom Install
- 3Paste, then press Install — full guide with screenshots
1{
12 "version": 5,
23 "script": {
4 "version": "0.1.0",
5 "changeLog": "Auto-generated draft from TrueNAS fscrawler 2.0.19"
6 },
37 "installation_questions": [
8 {
9 "question": "Job name",
10 "type": "text",
11 "key": "job_name",
12 "required": true
13 }
14 ],
15 "requirements": {
416 "locations": ["ApplicationsPerformance"],
517 "specifications": ["2CORE"],
618 "permissions": ["READ_WRITE_LOCATIONS"]
19 },
720 "ensure_directories_exists": [
21 {"path": "$LOCATION(ApplicationsPerformance)"},
22 {"path": "$LOCATION(ApplicationsPerformance)/fscrawler"},
23 {
24 "path": "$LOCATION(ApplicationsPerformance)/fscrawler/root_dir",
25 "snapshot": {"id": "root_dir"}
26 },
27 {
28 "path": "$LOCATION(ApplicationsPerformance)/fscrawler/es_data",
29 "snapshot": {"id": "es_data"}
30 }
31 ],
32 "app_values": {
833 "fscrawler": {"job_name": "$QUESTION(job_name)"},
34 "storage": {
935 "root_dir": "$HOST_PATH($LOCATION(ApplicationsPerformance)/fscrawler/root_dir)",
1036 "es_data": "$HOST_PATH($LOCATION(ApplicationsPerformance)/fscrawler/es_data)"
37 },
1138 "resources": {"limits": {"cpus": 2, "memory": "$MEMORY(10%, 4096)"}}
39 }
40}
What this script does
Hover or tap a box to see the lines it explains.
-
Script format
Tells HexOS this is a version 5 install script, so it knows how to read the rest.
Line 2
-
Script revision
This copy of the script is revision 0.1.0. Latest change: “Auto-generated draft from TrueNAS fscrawler 2.0.19”.
Lines 3–6
-
Questions you'll be asked
Before installing, HexOS will ask you for: Job name. Your answers are slotted into the settings further down wherever you see $QUESTION(...).
Lines 7–14
-
Storage locations it needs
The app uses these HexOS storage locations: App storage (fast). If one isn't set up yet, HexOS will ask you to pick a place for it.
Line 16
-
Minimum hardware
Recommended minimum: 2 CPU cores.
Line 17
-
Permission to use your folders
Allows the app to read and write files inside the storage locations listed above — and nowhere else.
Line 18
-
Folders created on install
Creates the folders the app needs before it starts: App storage (fast) › fscrawler, App storage (fast) › fscrawler › root_dir and App storage (fast) › fscrawler › es_data. Folders marked “snapshot” are included in HexOS snapshots, so you can roll them back.
Lines 20–31
-
Your answer: job name
Filled in with what you typed for “job name” when you installed.
Line 33
-
Where the app's “root dir” files is saved
Where the app's “root dir” files is saved on your server: App storage (fast) › fscrawler › root_dir.
Line 35
-
Where the app's “es data” files is saved
Where the app's “es data” files is saved on your server: App storage (fast) › fscrawler › es_data.
Line 36
-
Resource limits
Caps how much of your server the app can use: 2 CPU cores and 10% of your server's memory, but never more than 4 GB. This keeps one busy app from slowing everything else down.
Line 38