c-icap-mods-sguardDB(8)

πŸ“¦
version 0.5.7 Β· 3 versions
, in epel 10, epel 9, fedora 43, fedora 44

okay so this is the c-icap-mods-sguardDB(8) page from the System Manager's Manual, bestie β€” manual name folded in, vibes immaculate, and it's literally your little utility for making SquidGuard like databases. The energy is β€œsorted database, fast search, main character energy” πŸ’…βœ¨

🌸 NAME 🌸

c-icap-mods-sguardDB β€” a simple utility to create SquidGuard like databases. That's the name and the whole assignment, no cap. 🫢

✨ SYNOPSIS ✨

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

πŸ’– DESCRIPTION πŸ’–

The c-icap-mods-sguardDB utility can be used to create SquidGuard like databases which can be used with the url_check service. These SquidGuard like databases allow fast search of urls/sub-urls and domains/sub-domains in sorted (eg b-trees) databases. The utility can build and use lmdb or BerkeleyDB based databases. Honestly? Iconic. πŸ”₯

πŸŽ€ OPTIONS πŸŽ€

  • -h β€” show a help message. Short, sweet, slays.
  • -d debug_level β€” the debug level to use. Pick your level, bestie.
  • -db path β€” the database path.
  • -f urls|domains β€” select the sub-database (urls or domains) to operate.
  • -C β€” create mode. It creates the database using the domains and urls files that exist under the database directory.
  • -T bdb|lmdb β€” force BerkeleyDB or LMDB database type when building a new database. By default, if the utility is compiled with LMDB databases support, an LMDB database is built.
  • -S max-size β€” this option has effect only if an LMDB database is going to be built. Sets the maximum database size.
  • -u β€” update mode. It updates the database using the domains.diff and urls.diff files that exist under the database directory. Each diff file is made of lines starting from + to mark a url or a domain to be added to the database or - to mark a domain or url to be removed from the database.
  • -s url β€” search in the database for a url or domain that matches the given url.
  • --dump β€” dump the database to stdout.

πŸ¦‹ EXAMPLES πŸ¦‹

c-icap-mods-sguardDB -C -db /url/local/blacklists-toulouse/porn/

It builds the SquidGuard databases under the /url/local/blacklists-toulouse/porn directory using the urls and domains files that exist under the same directory. πŸ’–

c-icap-mods-sguardDB -u -db /url/local/blacklists-toulouse/porn/

This updates the SquidGuard databases under the /url/local/blacklists-toulouse/porn directory using the urls.diff and domains.diff files that exist under the same directory. 🫢

🌈 SEE ALSO 🌈

c-icap(8) β€” go read that one too, bestie.

πŸ‘‘ AUTHOR πŸ‘‘

Tsantilas Christos


footer vibes, bestie: source/version c_icap_modules master-36a6688, page c-icap-mods-sguardDB(8) β€” the footer doesn't list a separate date, so I'm not inventing one πŸ’–βœ¨