bf_tar (1) - Linux Man Pages
bf_tar: shell script to write a tar file of a bogofilter directory to stdout
bf_tar - shell script to write a tar file of a bogofilter directory to stdout
- bf_tar [-r] [-R] bogofilter_directory
The -r option causes bf_tar to remove inactive log files after the archive has been written successfully. The default is to leave log files.
The -R option causes bf_tar 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.
bf_tar ~/.bogofilter > outfile.tar
Writes a standard .tar file containing the essential files from ~/.bogofilter to outfile.tar.
bf_tar ~/.bogofilter | gzip -9 -c > outfile.tar.gz
Writes a gzipped .tar.gz file containing the essential files from ~/.bogofilter to outfile.tar.gz.
bf_tar `pwd`/mydirectory > outfile.tar
Prepend $(pwd)/ or `pwd`/ if you want to specify an absolute path instead of a relative path.
This script is meant for use with Berkeley DB based bogofilter versions.
This script requires a SUSv2 compliant pax utility.