-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfindNclean.conf.example
57 lines (49 loc) · 1.55 KB
/
findNclean.conf.example
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
# This is simple example of configuration file to try findNclean
# For verbose config options description refer
# ./findNclean help -c
# You can use this file with:
# ./findNclean find -c ./findNclean.conf.example
# Then (be careful)
# ./findNclean move -c ./findNclean.conf.example
<Global>
DEBUG = true
REL_PATH_ALLOW = true
APPROVED_SUFFIX = .approved
# IGNORE_FILES_WITH_NEWLINES = false
# FIND_EXPR_GLOBAL = -depth
</Global>
## Uncomment only if you're going to use only 'find' action.
# <Rule Minimal Rule that just find all items inside /tmp directory>
# result_list = All items inside tmp directory.find-example.csv
# search_path = /tmp
# </Rule>
<Rule1 find/move old unused *.tmp files in /tmp, /var and current user home dir>
result_list = ./ancient-tmp.find-example.csv
## find only options
search_path = /var/
search_path = /tmp/
search_path = ~/
type = f
name = .*\.tmp
accessed < 2017
## move only options
move_path = ./
move_log = ./ancient-tmp.move-example.csv
move_log_err = ./ancient-tmp.move-example.err.csv
</Rule1>
<Rule2 The same as above but for small non-zero logs>
result_list = ./ancient-logs.find-example.csv
## find only options
search_path = ~/
search_path = /var/
search_path = /tmp/
type = f
name = .*\.log(\.gz)?
size > 0
size <= 2M
accessed < 2017
## move only options
move_path = ./
move_log = ./ancient-logs.move-example.csv
move_log_err = ./ancient-logs.move-example.err.csv
</Rule2>