Blame doc/bf_tar.1in

Packit Service 8f0814
'\" t
Packit Service 8f0814
.\"     Title: bf_tar
Packit Service 8f0814
.\"    Author: [see the "Authors" section]
Packit Service 8f0814
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
Packit Service 8f0814
.\"      Date: 05/19/2019
Packit Service 8f0814
.\"    Manual: Bogofilter Reference Manual
Packit Service 8f0814
.\"    Source: Bogofilter
Packit Service 8f0814
.\"  Language: English
Packit Service 8f0814
.\"
Packit Service 8f0814
.TH "BF_TAR" "1" "05/19/2019" "Bogofilter" "Bogofilter Reference Manual"
Packit Service 8f0814
.\" -----------------------------------------------------------------
Packit Service 8f0814
.\" * Define some portability stuff
Packit Service 8f0814
.\" -----------------------------------------------------------------
Packit Service 8f0814
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit Service 8f0814
.\" http://bugs.debian.org/507673
Packit Service 8f0814
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
Packit Service 8f0814
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit Service 8f0814
.ie \n(.g .ds Aq \(aq
Packit Service 8f0814
.el       .ds Aq '
Packit Service 8f0814
.\" -----------------------------------------------------------------
Packit Service 8f0814
.\" * set default formatting
Packit Service 8f0814
.\" -----------------------------------------------------------------
Packit Service 8f0814
.\" disable hyphenation
Packit Service 8f0814
.nh
Packit Service 8f0814
.\" disable justification (adjust text to left margin only)
Packit Service 8f0814
.ad l
Packit Service 8f0814
.\" -----------------------------------------------------------------
Packit Service 8f0814
.\" * MAIN CONTENT STARTS HERE *
Packit Service 8f0814
.\" -----------------------------------------------------------------
Packit Service 8f0814
.SH "NAME"
Packit Service 8f0814
bf_tar \- shell script to write a tar file of a bogofilter directory to stdout
Packit Service 8f0814
.SH "SYNOPSIS"
Packit Service 8f0814
.HP \w'\fBbf_tar\fR\ 'u
Packit Service 8f0814
\fBbf_tar\fR [\-r] [\-R] \fIbogofilter_directory\fR
Packit Service 8f0814
.SH "DESCRIPTION"
Packit Service 8f0814
.PP
Packit Service 8f0814
\fBbf_tar\fR
Packit Service 8f0814
bundles a
Packit Service 8f0814
bogofilter
Packit Service 8f0814
working directory in tar format and copies it to standard output (your console, or where you redirect it, see
Packit Service 8f0814
EXAMPLES
Packit Service 8f0814
below)\&.
Packit Service 8f0814
.SH "OPTIONS"
Packit Service 8f0814
.PP
Packit Service 8f0814
The
Packit Service 8f0814
\fB\-r\fR
Packit Service 8f0814
option causes
Packit Service 8f0814
\fBbf_tar\fR
Packit Service 8f0814
to remove inactive log files after the archive has been written successfully\&. The default is to leave log files\&.
Packit Service 8f0814
.PP
Packit Service 8f0814
The
Packit Service 8f0814
\fB\-R\fR
Packit Service 8f0814
option causes
Packit Service 8f0814
\fBbf_tar\fR
Packit Service 8f0814
to remove inactive log files before the archive is written\&. This may reduce chances that the resulting archive is recoverable should it become damaged\&. The archive may be smaller though\&. The default is to leave log files\&.
Packit Service 8f0814
.SH "EXIT STATUS"
Packit Service 8f0814
.PP
Packit Service 8f0814
The script exits with status code 0 if everything went well, and nonzero if it encountered trouble\&.
Packit Service 8f0814
.SH "EXAMPLES"
Packit Service 8f0814
.sp
Packit Service 8f0814
.RS 4
Packit Service 8f0814
.ie n \{\
Packit Service 8f0814
\h'-04'\(bu\h'+03'\c
Packit Service 8f0814
.\}
Packit Service 8f0814
.el \{\
Packit Service 8f0814
.sp -1
Packit Service 8f0814
.IP \(bu 2.3
Packit Service 8f0814
.\}
Packit Service 8f0814
\fBbf_tar ~/\&.bogofilter > outfile\&.tar\fR
Packit Service 8f0814
.sp
Packit Service 8f0814
Writes a standard \&.tar file containing the essential files from
Packit Service 8f0814
~/\&.bogofilter
Packit Service 8f0814
to
Packit Service 8f0814
outfile\&.tar\&.
Packit Service 8f0814
.RE
Packit Service 8f0814
.sp
Packit Service 8f0814
.RS 4
Packit Service 8f0814
.ie n \{\
Packit Service 8f0814
\h'-04'\(bu\h'+03'\c
Packit Service 8f0814
.\}
Packit Service 8f0814
.el \{\
Packit Service 8f0814
.sp -1
Packit Service 8f0814
.IP \(bu 2.3
Packit Service 8f0814
.\}
Packit Service 8f0814
\fBbf_tar ~/\&.bogofilter | gzip \-9 \-c > outfile\&.tar\&.gz\fR
Packit Service 8f0814
.sp
Packit Service 8f0814
Writes a gzipped \&.tar\&.gz file containing the essential files from
Packit Service 8f0814
~/\&.bogofilter
Packit Service 8f0814
to
Packit Service 8f0814
outfile\&.tar\&.gz\&.
Packit Service 8f0814
.RE
Packit Service 8f0814
.sp
Packit Service 8f0814
.RS 4
Packit Service 8f0814
.ie n \{\
Packit Service 8f0814
\h'-04'\(bu\h'+03'\c
Packit Service 8f0814
.\}
Packit Service 8f0814
.el \{\
Packit Service 8f0814
.sp -1
Packit Service 8f0814
.IP \(bu 2.3
Packit Service 8f0814
.\}
Packit Service 8f0814
\fBbf_tar `pwd`/mydirectory > outfile\&.tar\fR
Packit Service 8f0814
.sp
Packit Service 8f0814
Prepend
Packit Service 8f0814
\fB$(pwd)/\fR
Packit Service 8f0814
or
Packit Service 8f0814
\fB`pwd`/\fR
Packit Service 8f0814
if you want to specify an absolute path instead of a relative path\&.
Packit Service 8f0814
.RE
Packit Service 8f0814
.SH "NOTES"
Packit Service 8f0814
.PP
Packit Service 8f0814
This script is meant for use with Berkeley DB based
Packit Service 8f0814
bogofilter
Packit Service 8f0814
versions\&.
Packit Service 8f0814
.PP
Packit Service 8f0814
This script requires a SUSv2 compliant
Packit Service 8f0814
\fBpax\fR
Packit Service 8f0814
utility\&.
Packit Service 8f0814
.PP
Packit Service 8f0814
This script expects a SUSv2 compliant shell\&. Solaris systems should have the
Packit Service 8f0814
SUNWxcu4
Packit Service 8f0814
package installed (when
Packit Service 8f0814
bogofilter
Packit Service 8f0814
is configured) so that
Packit Service 8f0814
/usr/xpg4/bin/sh
Packit Service 8f0814
can be used\&.
Packit Service 8f0814
.SH "AUTHORS"
Packit Service 8f0814
.PP
Packit Service 8f0814
Matthias Andree