|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
To create a database, use anubisadm --create (or
Anubisadm will read database
entries from the standard input and write them to the database.
The standard input is supposed to be formatted as a
(see section Plain text databases).
For example, to create a GDBM database from plain text file `userlist', use the following command
anubisadm --create gdbm:/etc/anubis.db < userlist
Similarly, to create an initially empty database, type
anubisadm --create gdbm:/etc/anubis.db < /dev/null
Notice, that if you use SQL database format, `--create' command does not imply creating the database structure! So, before running
anubisadm --create mysql://localhost/dbname < userlist
make sure you create the underlying database structure (including
granting privileges to the
anubis user), via the
usual procedure. Please refer to corresponding database manual
for the detailed instructions on this.
It is sometimes necessary to convert an existing user database
from one format (protocol) to another. For example, suppose you
have been running GDBM database (
for some time, but now it has grown so big that you decided to
switch to PostgreSQL database to improve performance. To do so,
first create the database using postgres utilities. Then run
anubisadm --list text:/etc/anubis.db | \ anubisadm --create pgsql://localhost/dbname
That's all there is to it!
This document was generated on May, 24 2014 using texi2html 1.76.