1c-icap-mods-sguardDB(8)     System Manager's Manual    c-icap-mods-sguardDB(8)
2
3
4

NAME

6       c-icap-mods-sguardDB  -  simple utility to create SquidGuard like data‐
7       bases
8

SYNOPSIS

10       c-icap-mods-sguardDB [ -h ] [ -d debug_level  ]  [  -db  path  ]  [  -f
11       urls|domains ] [ -C ] [ -T bdb|lmdb ] [ -S max-size ] [ -u ] [ -s url ]
12       [ --dump ]
13

DESCRIPTION

15       c-icap-mods-sguardDB utility can be  used  to  create  SquidGuard  like
16       databases which can be used with url_check service. The SquidGuard like
17       databases allow fast search of urls/sub-urls and domains/sub-domains in
18       sorted (eg b-trees) databases.
19
20       The utility can build and use lmdb or BerkeleyDB based databases.
21
22

OPTIONS

24       -h     Show a help message
25
26       -d debug_level
27              The debug level to use
28
29       -db path
30              The database path
31
32       -f urls|domains
33              Select the sub-database (urls or domains) to operate.
34
35       -C     Create  mode. Create the database using the "domains" and "urls"
36              files exist under the database directory.
37
38       -T bdb|lmdb
39              Force BerkeleyDB or LMDB database type when building  new  data‐
40              base. By default, if the utility is compiled with LMDB databases
41              support, an LMDB database is built.
42
43       -S max-size
44              This option has effect only if an LMDB database is going  to  be
45              built. Sets the maximum database size.
46
47       -u     Update  mode.  Update  the database using the "domains.diff" and
48              "urls.diff" files exist under the database directory. Each  diff
49              file  consist  by lines starting from "+" to mark a url or a do‐
50              main to be added to the database or "-" to mark a domain or  url
51              to be removed from database.
52
53       -s url Search in the database for a url or domain matches the given url
54
55       --dump Dump the database to stdout
56

EXAMPLES

58       c-icap-mods-sguardDB -C -db /url/local/blacklists-toulouse/porn/
59              It  builds  the SquidGuard databases under the /url/local/black‐
60              lists-toulouse/porn directory using the urls and  domains  files
61              exist under the same directory.
62
63       c-icap-mods-sguardDB -u -db /url/local/blacklists-toulouse/porn/
64              updates  the  SquidGuard  databases  under the /url/local/black‐
65              lists-toulouse/porn  directory  using  the  urls.diff  and   do‐
66              mains.diff files exist under the same directory.
67

SEE ALSO

69       c-icap(8)
70

AUTHOR

72       Tsantilas Christos
73
74
75
76                         c_icap_modules master-fd1a1b7 c-icap-mods-sguardDB(8)
Impressum