Skip to content

djoos-cookbooks/hollandbackup

Repository files navigation

Build Status

hollandbackup cookbook

## Description

This cookbook provides an easy way to install Holland Backup.

More information?

## Requirements

Cookbooks:

This cookbook recommends on the following cookbooks:

  • mysql

Depending on your setup, these recommended cookbooks are actual dependencies (depends):

  • Installing the mysqldump provider? You'll need the mysql cookbook to be available.

Platforms:

  • Debian
  • Ubuntu
  • CentOS
  • RHEL

## Attributes

repository.rb:

  • node['hollandbackup']['repository']['distro'] - The Linux distro, defaults to "xUbuntu_12.04"

general

  • node['hollandbackup']['mysqldump']['mysql_binpath'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['lock_method'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['exclude_invalid_views'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['dump_routines'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['dump_events'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['stop_slave'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['bin_log_position'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['flush_logs'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['file_per_database'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['additional_options'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['extra_defaults'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['estimate_method'] - see Holland Backup mysqldump-docs, defaults to nil

database and table filtering

  • node['hollandbackup']['mysqldump']['filtering']['databases'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['filtering']['exclude_databases'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['filtering']['tables'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['filtering']['exclude_tables'] - see Holland Backup mysqldump-docs, defaults to nil

[compression]

  • node['hollandbackup']['mysqldump']['compresssion']['method'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['compresssion']['inline'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['compresssion']['level'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['compresssion']['bin_path'] - see Holland Backup mysqldump-docs, defaults to nil

[mysql:client]

  • node['hollandbackup']['mysqldump']['mysql_connection']['defaults_extra_file'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['mysql_connection']['user'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['mysql_connection']['password'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['mysql_connection']['socket'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['mysql_connection']['host'] - see Holland Backup mysqldump-docs, defaults to nil
  • node['hollandbackup']['mysqldump']['mysql_connection']['port'] - see Holland Backup mysqldump-docs, defaults to nil

[holland]

  • node['hollandbackup']['main']['plugin_dirs'] - see Holland Backup main config-docs, defaults to nil
  • node['hollandbackup']['main']['backup_directory'] - see Holland Backup main config-docs, defaults to nil
  • node['hollandbackup']['main']['backupsets'] - see Holland Backup main config-docs, defaults to nil
  • node['hollandbackup']['main']['umask'] - see Holland Backup main config-docs, defaults to nil
  • node['hollandbackup']['main']['path'] - see Holland Backup main config-docs, defaults to nil

[logging]

  • node['hollandbackup']['main']['filename'] - see Holland Backup main config-docs, defaults to nil
  • node['hollandbackup']['main']['level'] - see Holland Backup main config-docs, defaults to nil

backupsets.rb:

  • node['hollandbackup']['backupsets'] - A list of backupsets

## Usage

  1. include recipe[hollandbackup] in a run list
  2. include recipe[hollandbackup::mysqldump]
  3. include recipe[hollandbackup::main]
  4. include recipe[hollandbackup::backupsets]
  5. tweak the attributes via attributes/default.rb --- OR --- override the attribute on a higher level

References

## License and Authors

Author: David Joos development@davidjoos.com Copyright: 2016, David Joos

Author: David Joos david.joos@escapestudios.com Author: Escape Studios Development dev@escapestudios.com Copyright: 2012-2015, Escape Studios

Unless otherwise noted, all files are released under the MIT license, possible exceptions will contain licensing information in them.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.