.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "ZEBRAIDX" "1" "08 February 2005" "" ""
.SH NAME
zebraidx \- Zebra Administrative Tool
.SH SYNOPSIS
\fBzebraidx\fR [ \fB-t \fItype\fB\fR ] [ \fB-c \fIconfig\fB\fR ] [ \fB-g \fIgroup\fB\fR ] [ \fB-d \fIdatabase\fB\fR ] [ \fB-m \fImbytes\fB\fR ] [ \fB-n\fR ] [ \fB-s\fR ] [ \fB-v \fIlevel\fB\fR ] [ \fB-l \fIfile\fB\fR ] [ \fB-L\fR ] [ \fB-f \fInumber\fB\fR ] [ \fB-v\fR ] \fB\fIcommand\fB\fR [ \fB\fIfile\fB\fR\fI ...\fR ]
.SH "DESCRIPTION"
.PP
\fBzebraidx\fR allows you to insert, delete or updates
records in Zebra. \fBzebraidx\fR accepts a set options
(see below) and exactly one command (mandatory).
.SH "COMMANDS"
.TP
\fBupdate \fIdirectory\fB\fR
Update the register with the files contained in
\fIdirectory\fR\&.
If no directory is provided, a list of files is read from
stdin\&.
See [XRef to ADMINISTRATION]>.
.TP
\fBdelete \fIdirectory\fB\fR
Remove the records corresponding to the files found under
\fIdirectory\fR from the register.
.TP
\fBcommit\fR
Write the changes resulting from the last update
commands to the register. This command is only available if the use of
shadow register files is enabled
(see [XRef to SHADOW-REGISTERS]>).
.TP
\fBclean\fR
Clean shadow files and "forget" changes.
.TP
\fBcreate \fIdatabase\fB\fR
Create database.
.TP
\fBdrop \fIdatabase\fB\fR
Drop database (delete database).
.TP
\fBinit\fR
Deletes an entire register (all files in shadow+register areas).
.SH "OPTIONS"
.TP
\fB-t \fItype\fB\fR
Update all files as \fItype\fR\&. Currently, the
types supported are text and
grs\fI\&.subtype\fR\&.
If no \fIsubtype\fR is provided for the GRS
(General Record Structure) type, the canonical input format
is assumed (see
the section entitled \fILocal Representation\fR in \fIZebra - User's Guide
and Reference\fR).
Generally, it is probably advisable to specify the record types
in the zebra.cfg file (see
the section entitled \fIRecord Types\fR in \fIZebra - User's Guide
and Reference\fR), to avoid confusion at
subsequent updates.
.TP
\fB-c \fIconfig-file\fB\fR
Read the configuration file
\fIconfig-file\fR instead of
zebra.cfg\&.
.TP
\fB-g \fIgroup\fB\fR
Update the files according to the group
settings for \fIgroup\fR
(see
the section entitled \fIThe Zebra Configuration File\fR
in \fIZebra - User's Guide
and Reference\fR).
.TP
\fB-d \fIdatabase\fB\fR
The records located should be associated with the database name
\fIdatabase\fR for access through the Z39.50 server.
.TP
\fB-l \fIfile\fB\fR
Write log messages to \fIfile\fR instead
of stderr\&.
.TP
\fB-m \fImbytes\fB\fR
Use \fImbytes\fR of memory before flushing
keys to background storage. This setting affects performance when
updating large databases.
.TP
\fB-L\fR
Makes zebraidx skip symbolic links. By default, zebraidx follows
them.
.TP
\fB-n\fR
Disable the use of shadow registers for this operation
(see
the section entitled \fISafe Updating - Using Shadow
Registers\fR in \fIZebra - User's Guide
and Reference\fR).
.TP
\fB-s\fR
Show analysis of the indexing process. The maintenance
program works in a read-only mode and doesn't change the state
of the index. This options is very useful when you wish to test a
new profile.
.TP
\fB-V\fR
Show Zebra version.
.TP
\fB-v \fIlevel\fB\fR
Set the log level to \fIlevel\fR\&.
\fIlevel\fR should be one of
none, debug, and
all\&.
.SH "FILES"
.PP
\fIzebra.cfg\fR
.SH "SEE ALSO"
.PP
\fBzebrasrv\fR(8)
.PP
See "shadow registers" in Zebra manual
.PP
See "administration" in Zebra manual