c-icap-mkbdb(8)

c-icap-mkbdb8

Simple icap clientutility to create berkeley db lookup tables

Usage

c-icap-mkbdb [-V] [-VV] [-d debug_level] [-i file.txt] [-o file.db] [{-t string | int | ip}] [{-v string | int | ip}] [--dump]

Overview

c-icap-mkbdb utility can be used to create Berkeley DB databases which can be used as lookup tables by the c-icap server.

Options

-V

Print version

-VV

Print build informations

-d debug_level

The debug level

-i file.txt

The file contains the data (required). The line format of this file must be:
key: value1, value2, ....

-o file.db

The database to be created

-t string|int|ip

The type of the key. Select string for string keys, int for integer keys or ip for using IP addresses as keys. The "string" is the default.

-v string|int|ip

The type of the values. The "string" is the default.

-p page_size[k]

The page size to use. Can not be less than 512 bytes or greater than 64k. Read berkeleyDB manual for default values.

--btree

Use B-Tree as access method for the database. By default uses Hash.

--dump

Do not update the database just dump it to the screen.

Examples

c-icap-mkbdb -o keys -i keys.txt

It builds the keys Berkeley DB database, using string type for keys and values.

c-icap-mkbdb -o keys --dump

Dump the contents of the keys database

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12–13

--btree since Debian 10 (Buster); -V since Debian 10 (Buster); -VV since Debian 10 (Buster); -p since Debian 10 (Buster).

Author

Tsantilas Christos

From c-icap 1:0.5.10-6.1+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.