User tools

Website tools


benno tools

This is an old version of the document!


benno tools

Das Paket benno-tools installiert das Kommandozeilenwerkzeug benno mit Admin-Werkzeugen für das Archiv.

call

Das Kommando benno implementiert einzelne Sub-Programme mit speziellen Funktionen. Mit dem Schalter -h können hierzu genauere Informationen ausgegeben werden.

benno -h usage: benno [-h] {backup,info,reindex,verify} ... Benno Archiv Toolbox positional arguments: {backup,info,reindex,verify} sub-command help backup Prints files in repo to backup in reverse order (newest file first) info Show information about the current installation reindex Reindex documents from archive verify Verify consistence of the archive optional arguments: -h, --help show this help message and exit

backup

Backup of emails and archive journal.

benno backup -h usage: benno backup [-h] [-c CONFIG] [-r REPO] [-l FILELIST] [-f] [-t TARFILE] [-s STATUSFILE] [--purge_status] [-v] optional arguments: -h, --help show this help message and exit -c CONFIG, --config CONFIG Path to the config file (/etc/benno/benno.xml) -r REPO, --repo REPO Repository path (instead derived from config file) -l FILELIST, --filelist FILELIST Print list of files to backup (default) -f, --full Full backup (ignore backup status file) -t TARFILE, --tarfile TARFILE Write backup data to tar archive file -s STATUSFILE, --statusfile STATUSFILE Store name of newest backuped file here (default:<repodir> /backup.status --purge_status Purge status before backup -v, --verbose verbose output (-vv verbose output)

info

Display information about the archive.

benno info -h usage: benno info [-h] [-c CONFIG] [-v] optional arguments: -h, --help show this help message and exit -c CONFIG, --config CONFIG Path to the config file (/etc/benno/benno.xml) -v, --verbose verbose output (-vv verboser output)

reindex

Re-index individual emails or boxes.

Achtung Zum Re-Indexieren einzelner Boxen empfehlen wir vorzugehen wie unter Re-Import beschrieben.

benno reindex -h usage: benno reindex [-h] (-b BOX | -m MAILID) [-c CONFIG] [-i INBOX] [-r REPO] [-v] optional arguments: -h, --help show this help message and exit -b BOX, --box BOX Reindex the given box (ALL: whole archive) -m MAILID, --mailid MAILID Mail id to reindex -c CONFIG, --config CONFIG Path to the config file (/etc/benno/benno.xml) -i INBOX, --inbox INBOX Path to the inbox directory (/srv/benno/inbox) -r REPO, --repo REPO Path to repository -v, --verbose Verbose output (-vv verboser output)

verify

Verify the integrity of the archive and the journal.

benno verify -h usage: benno verify [-h] [-c CONFIG] [-r REPO] [-j JOURNAL] [-a] [-v] optional arguments: -h, --help show this help message and exit -c CONFIG, --config CONFIG Path to the config file (/etc/benno/benno.xml) -r REPO, --repo REPO Path to repository -j JOURNAL, --journal JOURNAL Verify consistency of the journalchain (default) -a, --archive Verify consistency of the archived files against journal (includes --journal) -v, --verbose Verbose output (-vv verbose output)
benno-tools.1532699878.txt.gz · Zuletzt geändert: 2018/07/27 13:57 von lwsystems