safekeep

Module for managing safekeep backups.

Lefty

leftys

7,356 downloads

7,356 latest version

2.1 quality score

Version information

  • 0.1.0 (latest)
released Aug 7th 2015

Start using this module

Documentation

leftys/safekeep — version 0.1.0 Aug 7th 2015

Table of Contents

  1. Overview
  2. Requirements
  3. Usage
  4. Contributors

Overview

Puppet module for managing safekeep backups. Currently can be used only for setting-up rdiff-backup (incremental) backups. Module manages ssh keys for you.

Requirements

  1. Install safekeep packages or repository with them.
  2. Module needs puppet master with a support of exported resources (puppetdb).

Usage

Backup server

  class { 'safekeep::server':
    basedir => '/dir/with/backups/',
    emails  => 'comma,separated,emails,to,notify',
  }

Backup client

  class { 'safekeep::client':
    allowed_hostname => 'backup-server.tld', 
  }
  safekeep::backup { 'backup-name': 
    # There must be at least two entries in data because of a bug in exported resources
    # Rule: first match wins
    data     => [
      ['exclude', 'regexp', '\.bak$'],
      ['include', 'path', '/srv'],
      ['include', 'glob', '/var/www/nginx/*.log'],
    ],
    keepdays => 7, #how many days of backups to store
  }

Contributors

Jan Skoda, Geosense s.r.o.