.TH c-icap-mods-sguardDB 8 "c_icap_modules 0.5.3" .SH NAME c-icap-mods-sguardDB - simple utility to create Berkeley DB lookup tables .SH SYNOPSIS .B c-icap-mods-sguardDB [ .B \-d debug_level ] [ .B \-db path ] [ .B \-C ] [ .B \-u ] [ .B \-s url ] [ .B \-f urls|domains ] [ .B \-\-dump ] .SH DESCRIPTION .B c-icap-mods-sguardDB utility can be used to create SquidGuard databases which can be used with url_check service. .SH OPTIONS .IP "-d debug_level" The debug level to use .IP "-db path" The database path .IP "-C" Create mode. Create the database using the "domains" and "urls" files exist under the database directory. .IP "-u" Update mode. Update the database using the "domains.diff" and "urls.diff" files exist under th database directory. Each diff file consist by lines starting from "+" to mark a url or a domain to be appended to the database or "-" to mark a domain or url to be removed from database. .IP "-s url" Search in the database for a url or domain matches the given url .IP "-f urls|domains" Select the sub-database (urls or domains) to operate. .SH EXAMPLES .TP c-icap-mods-sguardDB \-C \-db /url/local/blacklists-toulouse/porn/ It builds the .B domains.db and .B urls.db SquidGuard databases under the /url/local/blacklists-toulouse/porn directory using the .B urls and .B domains files exist under the same directory. .TP c-icap-mods-sguardDB \-u \-db /url/local/blacklists-toulouse/porn/ updates the SquidGuard databases under the /url/local/blacklists-toulouse/porn directory using the .B urls.diff and .B domains.diff files exist under the same directory. .SH SEE ALSO .BR c-icap "(8)" .SH AUTHOR Tsantilas Christos