aboutsummaryrefslogtreecommitdiff
path: root/beam.conf
AgeCommit message (Collapse)AuthorFiles
2017-03-07Implement tar backupSergey Poznyakoff1
* lib/App/Beam/Config.pm (get): Return dereferenced array and hash refs. (__lint): Fix array collection. * lib/App/Beam.pm (%parameters): Mark unhandled keywords as arrays (logger): Read from fd, if passed as the first argument. (logcommand): New method. * lib/App/Beam/Backend.pm: New file. * lib/App/Beam/Backend/Tar.pm: New file. * lib/App/Beam/Backup.pm (run): Assume result OK, unless already set otherwise. * lib/App/Beam/Command.pm: New file. * MANIFEST: Update.
2017-03-04Always keep locus with each statement; phase out the locations keyword.Sergey Poznyakoff1
2017-03-02Rework configuration class to support optional "locations" mode.Sergey Poznyakoff1
When location => 1 is passed to the constructor, the created class will store source locations along with the configuration variables. * lib/App/Beam/Config.pm (error): Use the passed Locus object. (new): New kw parameter "locations" controls whether source locations are stored along with each configuration variable. (check_mandatory): Handle wildcard parameter declarations. (readconfig): Pass locations to all functions as Locus objects. Store them if required. (get): Rewrite to retrieve locations on request. (isset,issection,isscalar): Rewrite. (set): Handle the locations mode. (names_of): New method. * lib/App/Beam/Config/Locus.pm: New file. * MANIFEST: Add new files. * lib/App/Beam.pm (parameters): Declare "backend" and "item" sections. (new): Enable locations mode. (logger, logger_line): Redo to make use of the passed Locus object. (load_backends): New method. * t/TestConfig.pm: Rewrite. * t/conf01l.t: New test case. * t/conf02l.t: New test case. * t/conf03l.t: New test case. * t/conf04l.t: New test case. * t/conf05l.t: New test case. * t/locus.t: New test case.
2017-02-28Improve run-time configuration framework; provide boilerplate for the backup ↵Sergey Poznyakoff1
subcommand
2017-02-16Starting rewrite in PerlSergey Poznyakoff1
2012-10-30Create database dumps in temporary directory.Sergey Poznyakoff1
* backup.in: Set safe umask. * lib/beam/common.in (backup_tmp_dir): New global variable. * beam.conf: Add backup_tmp_dir variable. * doc/beam.conf.5in: Document new variables. * lib/beam/mysql.sh: Create temporary files in backup_tmp_dir * lib/beam/postgres.sh: Likewise.
2012-07-14Update the docs.Sergey Poznyakoff1
* beam.conf: Set PATH * doc/.gitignore: Add new generated files. * doc/Makefile.am: Build and install beam-list.1 and beam-module.5. * doc/beam-backup.1in: Update. * doc/beam-list.1in: New file. * doc/beam-module.5in: New file. * doc/beam-restore.1in: Update. * doc/beam.1in: Update. * .gitignore: Update.
2012-07-13Add a LDAP backup module.Sergey Poznyakoff1
* 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.
2012-06-27Minor changes.Sergey Poznyakoff1
* beam.conf (backup_logrotate_conf): Initialize variable. * cleaner.in: Include more detail in the initial verbose header. * lib/beam/common.in (beam_logrotate): Pass $verbose to logrotate.
2012-06-26Provide a default log rotate hook.Sergey Poznyakoff1
* 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.
2012-06-26Provide a new hook, to be run prior to opening the log file.Sergey Poznyakoff1
* backup.in (backup): Run openlog_hook. * beam.conf (openlog_hook): Document the hook. * doc/beam.conf.5in: Likewise. * lib/beam/common.in (load_config): Insert s3_mount at the beginning of the prologue_hook.
2012-06-13New configuration variable backup_s3_mount_optionsSergey Poznyakoff1
* beam.conf: Document backup_s3_mount_options. * lib/beam/s3.sh: Add backup_s3_mount_options to the list of options passed to mount.
2012-06-01Improve docs.Sergey Poznyakoff1
* NEWS: Update. * README: Rewrite. Provide enough documentation for startup. * doc/beam-cleaner.1in: New file. * doc/Makefile.am: Build and install beam-cleaner.1. * doc/beam-backup.1in: Fix the time-stamp-start variable. * doc/beam-restore.1in: Likewise. * doc/beam-s3.1in: Likewise. * doc/beam.conf.5in: Likewise. * backup.in: Mark with sh magic. * beam.in: Likewise. * lib/beam/common.in: Likewise. * lib/beam/fs.sh: Likewise. * lib/beam/mysql.sh: Likewise. * lib/beam/postgres.sh: Likewise. * lib/beam/s3.sh: Likewise. * restore.in: Likewise. * s3.in: Likewise.
2012-05-30Implement mail notification.Sergey Poznyakoff1
* backup.in (backup): New function. Send mail notification if backup_notify_email is not empty. * lib/beam/common.in (mail_report): New function. * beam.conf: Provide examples for the new variables. * beam.in: Fix typos. * doc/beam.conf.5in: Document new variables.
2012-05-29Rename project to BEAM (Backup Easy And Manageable).Sergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.