aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-06-26 19:14:01 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-06-26 19:16:43 +0300
commit380b7047132b7747999c2bca1164671f5fb8c604 (patch)
tree91c229d9d70deb5a6fd1144a20fa4aeb59784619 /doc
parent3932856031189f0c242483068cdd8eaf44429fc8 (diff)
downloadbeam-380b7047132b7747999c2bca1164671f5fb8c604.tar.gz
beam-380b7047132b7747999c2bca1164671f5fb8c604.tar.bz2
Provide a default log rotate hook.
* Makefile.am (build.sed): Define LOCALSTATEDIR and DATAROOTDIR. * beam.conf (openlog_hook): Initialize to beam_logrotate. * doc/beam.conf.5in: Document openlog_hook and its default. * lib/beam/common.in (beam_logrotate): New function.
Diffstat (limited to 'doc')
-rw-r--r--doc/beam.conf.5in12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/beam.conf.5in b/doc/beam.conf.5in
index 840b75a..9aa571c 100644
--- a/doc/beam.conf.5in
+++ b/doc/beam.conf.5in
@@ -356,6 +356,18 @@ commands to be run before and after backup.
Commands listed in this variable are run before opening the logfile. The
most common use for this hook is to rotate an oversized logfile prior to
opening it.
+
+The default configuration file initializes this hook with
+.BR beam_logrotate ,
+a shell function that uses
+.BR logrotate (8)
+to manage the log file. Configuration for
+.BR logrotate (8)
+can be supplied in the
+.B backup_logrotate_conf
+variable. By default, the log file is rotated weekly, 4
+weeks worth of backlogs are preserved.
+.TP
.B prologue_hook
This variable contains a whitespace-separated list of commands to
be invoked before starting backup (or restore). These commands are

Return to:

Send suggestions and report system problems to the System administrator.