Das Paket benno-tools installiert das Kommandozeilenwerkzeug benno mit Admin-Werkzeugen für das Archiv.
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,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
verify Verify consistence of the archive
optional arguments:
-h, --help show this help message and exit
Backup der E-Mails und des Archiv-Journals.
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 verboser output)
Informationen über das Archiv ausgeben.
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)
Einzelne E-Mails oder Boxen re-indexieren.
Achtung! Zum Re-Indexieren einzelner Boxen oder eines Containers 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)
Integrität des Archiv und des Journals überprüfen.
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 consistence of the journalchain (default)
-a, --archive Verify consistence of the archived files against
journal (includes --journal)
-v, --verbose Verbose output (-vv verboser output)