aboutsummaryrefslogtreecommitdiff
path: root/lib/beam/common.in
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-07-13 15:39:16 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-07-13 15:39:16 +0300
commit35212ddd3ceb7d3b20957b9ce6786f4ddd716bbe (patch)
tree5d52d7295c639f0c905d0461f1dfe237b97b51e5 /lib/beam/common.in
parentdd89ed279f6948fab60319262ffc4d25da8ecd10 (diff)
downloadbeam-35212ddd3ceb7d3b20957b9ce6786f4ddd716bbe.tar.gz
beam-35212ddd3ceb7d3b20957b9ce6786f4ddd716bbe.tar.bz2
Add a LDAP backup module.
* lib/beam/ldap.sh: New file. * lib/beam/Makefile.am (libbackup_SCRIPTS,EXTRA_DIST): Add ldap.sh. * beam.conf: Update, mention new backup type. * doc/beam.conf.5in: Update. * lib/beam/common.in (load_config): If backup_archive_dir is not set, and S3 backup is configured, set backup_archive_dir to $backup_mp_s3. (beam_logrotate): Add missingok to the logrotate configuration. * lib/beam/fs.sh: List configuration keywords. * lib/beam/mysql.sh: Likewise. * lib/beam/postgres.sh: Likewise. * lib/beam/s3.sh: Likewise.
Diffstat (limited to 'lib/beam/common.in')
-rw-r--r--lib/beam/common.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/beam/common.in b/lib/beam/common.in
index 6ce25fe..4c6cd21 100644
--- a/lib/beam/common.in
+++ b/lib/beam/common.in
@@ -71,6 +71,14 @@ load_config() {
abend 1 "backup_items not specified"
fi
+ if [ -z "$backup_archive_dir" ]; then
+ if [ -n "$backup_bucket_name" ]; then
+ backup_archive_dir=$backup_mp_s3
+ else
+ abend 1 "backup_archive_dir not set"
+ fi
+ fi
+
delayed_exit=
loaded_types=
for item in $backup_items
@@ -198,6 +206,7 @@ rotate 4
cat > $conf <<EOF
$backup_logfile {
$backup_logrotate_conf
+missingok
}
EOF
umask $u

Return to:

Send suggestions and report system problems to the System administrator.