Forge Home

backups

A module to manage backups

4,584 downloads

4,584 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.0 (latest)
released Jan 24th 2019
This version is compatible with:
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'denver-backups', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add denver-backups
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install denver-backups --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

denver/backups — version 0.1.0 Jan 24th 2019

base

Build Status Code Coverage Puppet Forge Puppet Forge - downloads Puppet Forge - scores

Table of Contents

  1. Description
  2. Usage - Configuration options and additional functionality
  3. Development

Description

This module will deploy a user to execute backups and a cron job to create encrypted backup artifacts.

Usage

Linux

Backing up a directory

class { '::backups':
  gpg_keyfile => 'pubkey.gpg'
  gpg_keyid   => 'keyname'
}

backups::backup { 'service-name':
  backup_type => 'file',
  backup_file => '/etc/conf/dir', 
  cron_hour   => 1,
  cron_minute => 30,
}

Backing up a postgres database.

class { '::backups':
  gpg_keyfile => 'pubkey.gpg'
  gpg_keyid   => 'keyname'
}

backups::backup { 'postgresdbname':
  backup_type => 'pg_db',
  backup_db   => 'dbname',
}

Backing up a mysql database.

class { '::backups':
  gpg_keyfile => 'pubkey.gpg'
  gpg_keyid   => 'keyname'
}

backups::backup { 'mysqldbname':
  backup_type => 'mysql_db',
  backup_db   => 'dbname',
}

Development

When adding to this module, be sure to add and update the unit tests where appropriate. You can run the tests locally with the following commands...

To execute general tests (lint, validate, spec)

bundle install
bundle exec rake test