This Role install Backup Manager by fromdual.com http://fromdual.com/mysql-backup-manager-mysql_bman
MySQL Server for Collection Feature
Currently it's been developed for, and tested on Ubuntu. It is assumed to work on other Debian distributions as well.
-
brman_tarball
- bman tarball url -
brman_install_path
- install path -
brman_symlink
- symlink folder -
brman_bin_symlink
- symlink in /usr/local/bin -
php_ini
- location of cli php.ini -
bman_config_path
- path of config files -
bman_log_path
- location of logfiles for logrotation -
bman_log_rotation
- rotation count before being removed
bman_config:
- file:
name: full.cfg
policy: daily
target: root/@127.0.0.1:3306
type: full
compress: 9
backupdir: /srv/backup
mode: physical
catalog: root/@127.0.0.1:3306
instance-name: fullbackup
- file:
name: cleanup.cfg
policy: daily
type: cleanup
retention: 7
bman_crons:
- name: full backup
config_file: full.cfg
hour: 2
minute: 00
- name: cleanup
config_file: cleanup.cfg
hour: 0
minute: 15
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: yamb00.bman }
BSD