mysqlbackup Cookbook
This cookbook installs mysqlbackup.
Requirements
mysql
- Obviously, MySQL is required
Attributes
mysqlbackup::default
Key | Type | Description | Default |
---|---|---|---|
['mysqlbackup']['enable_duply'] | Boolean | whether to enable duply | false |
['mysqlbackup']['enable_mysql'] | Boolean | whether to enable MySQL | false |
['mysqlbackup']['group'] | String | the group name for the system user running mysqlbackup | backup |
['mysqlbackup']['mysql_password'] | String | the password for the MySQL user | CHANGE_THIS_PASSWORD |
['mysqlbackup']['mysql_username'] | String | the username for the MySQL user | backup |
['mysqlbackup']['user'] | String | the username for the system user running mysqlbackup | backup |
['mysqlbackup']['version'] | String | the version number for mysqlbackup to install | 2.7 |
Usage
Include mysqlbackup
in your node's run_list
:
{
"name": "node",
"run_list": [
"recipe[mysqlbackup]"
]
}
Make sure you also supply the password for the MySQL root
user with the node['mysql']['server_root_password']
attribute when you enabled creating a dedicated read-only user account for backup.
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors: Lennard Timm