Select Badges

Select Supported Platforms

Select Status

RSS

m-backup_scripts (5) Versions 0.1.0

Common backup scripts

Policyfile
Berkshelf
Knife
cookbook 'm-backup_scripts', '= 0.1.0', :supermarket
cookbook 'm-backup_scripts', '= 0.1.0'
knife supermarket install m-backup_scripts
knife supermarket download m-backup_scripts
README
Dependencies

m-backup_scripts

Cookbook containing common backup scripts for mysql, psql, and efs-backup.

Please note this cookbook does not actually install the databases, just deploys
the scripts and setups a cron job to perform the backups.

MySQL

Add the following to your recipe:

include_recipe 'm-backup_scripts::mysql'

PostgreSQL

Add the following to your recipe:

include_recipe 'm-backup_scripts::postgres'

EFS

EFS backups are specified by calling the resource from a recipe. An example
of this is provided below, the items that are commented out in the example
are optional.

EFS also requires awscli and sendmail to be installed, this is NOT done automatically.

efs_backup 'example' do
  application_name 'example'
  application_path '/var/www/example.com'
  destination_bucket 'backups-example-com'
  # extra_tar_args '--exclude=wp-content/cache/' # default: none
  # cron_hour '22' # default: 23
  # retention '30' # default: 10
end

Dependent cookbooks

cron > 6.1.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.