diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-07-13 15:39:16 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-07-13 15:39:16 +0300 |
commit | 35212ddd3ceb7d3b20957b9ce6786f4ddd716bbe (patch) | |
tree | 5d52d7295c639f0c905d0461f1dfe237b97b51e5 /lib/beam/postgres.sh | |
parent | dd89ed279f6948fab60319262ffc4d25da8ecd10 (diff) | |
download | beam-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/postgres.sh')
-rwxr-xr-x | lib/beam/postgres.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/beam/postgres.sh b/lib/beam/postgres.sh index 31bf9d6..0eba767 100755 --- a/lib/beam/postgres.sh +++ b/lib/beam/postgres.sh @@ -15,6 +15,11 @@ # You should have received a copy of the GNU General Public License # along with BEAM. If not, see <http://www.gnu.org/licenses/>. +# Configuration keywords: +# +# item_type=postgres [mandatory] +# item_database=STRING [mandatory] + # postgres_check item postgres_check() { local database @@ -36,8 +41,8 @@ postgres_list() { postgres_backup() { local database - logit "backing up PostgreSQL $1" eval database=\$${1}_database + logit "backing up PostgreSQL database $database" test -z "$database" && abend 1 "${1}_database not set" if [ -z "$dry_run" ]; then su postgres -c "pg_dump $verbose $database" > $backup_snapshot_dir/$1-$week-$round-$level |