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 consistency of the archive optional arguments: -h, --help show this help message and exit
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)
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)
Re-index individual emails or boxes.
Attention! To re-index individual boxes or a container, we recommend proceeding as described under Re-Import .
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 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)