cookbook 'm-backup_scripts', '= 0.2.1'
m-backup_scripts (5) Versions 0.2.1 Follow0
Common backup scripts
cookbook 'm-backup_scripts', '= 0.2.1', :supermarket
knife supermarket install m-backup_scripts
knife supermarket download m-backup_scripts
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.