JCotton1123 / puppet-duplicity

Puppet module for managing duplicity backups

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

puppet-duplicity

Build Status

Puppet module for managing duplicity backups

Typical Usage

class { duplicity::cloudfiles:
  username => 'account',
  api_key => 'fsgzet6uis54ag4sfgae5a4'
}
duplicity::job::cloudfiles { 'example':
  directories => ['/root', '/home', '/var/www'],
  container => "backups-$::fqdn",
  hour => '4',
  minute => '0',
  remove_older_than => '30D',
  options => {
    '--full-if-older-than' => '7D' 
  }
}

No encryption

duplicity::job::cloudfiles { 'example':
  directories => ['/root', '/home', '/var/www'],
  container => "backups-$::fqdn",
  hour => '4',
  minute => '0',
  flags => ['--no-encryption']
}

Symmetric encryption

duplicity::job::cloudfiles { 'example':
  directories => ['/root', '/home', '/var/www'],
  container => "backups-$::fqdn",
  hour => '4',
  minute => '0',
  env_vars => {
    'PASSPHRASE' => 'wesetsiccyCablukkia'
  }
}

Asymmetric encryption

When using asymmetric encryption you must pass the gpg key id to duplicity.

duplicity::job::cloudfiles { 'example':
  directories => ['/root', '/home', '/var/www'],
  container => "backups-$::fqdn",
  hour => '4',
  minute => '0',
  options => {
    '--encrypt-id' => '4C1DDCD3'
  }
}

About

Puppet module for managing duplicity backups

License:Apache License 2.0


Languages

Language:Ruby 53.8%Language:Puppet 37.2%Language:HTML 9.0%