carta
bf_copy-tokyocabinet(1)

bf_copy-tokyocabinet1

Shell script to copy a bogofilter working directory

Part of bf_copy(1).

Usage

bf_copy [-c] source_dir destination_dir

Overview

bf_copy copies a bogofilter working directory to another directory. Currently it copies the database files (*.db), related files (log.*), and DB_CONFIG (if present).

Options

The -c option causes only active log files to be copied, not all. The default is to copy all log files.

Exit status

The script exits with status code 0 if everything went well, and nonzero if it encountered trouble.

Notes

This script is meant for use with Berkeley DB and SQLite based bogofilter versions.

This script expects a SUSv2 compliant shell. Solaris systems should have the SUNWxcu4 package installed (when bogofilter is configured) so that /usr/xpg4/bin/sh can be used.

History

  • Debian 13 (Trixie) to Debian 11 (Bullseye): the text shown here
  • Debian 10 (Buster) to Debian 8 (Jessie)
  • Debian 7 (Wheezy) to Debian 6.0 (Squeeze)

Bugs

This script assumes all *.db files in the source directory are relevant and copies them. This may not match your actual configuration.

Authors

Matthias Andree

From bogofilter-tokyocabinet 1.2.5-1+b4 in Debian 13 (Trixie). Parsed by carta from the page's man source.