Puppet module to install the ruby backup gem and create jobs to back up various services and directories.
A script to build the rubygem-backup package is provided in scripts. It adds bundler support to backup, bundles everything up, and uses fpm to create an RPM.
Released under the Apache 2.0 licence
To install:
class { 'backups':
aws_access_key = 'real_aws_access_key,
aws_secret_key = 'real_aws_secret_key',
bucket = 'mybucket',
}
To backup the /opt/myapp/logs and /var/log/ directories at 4:25 every day:
backups::archive { 'logs'
path => [ '/opt/myapp/logs', '/var/log' ],
hour => 4,
minute => 25,
}
To backup a development Riak install:
backups::archive { 'dev-riak'
mode => 'dev',
hour => 4,
minute => 25,
}
- Fork it
- Create a topic branch
- Improve/fix (with spec tests)
- Push new topic branch
- Submit a PR
- Enjoy your awesome contribution