Forge Home

rsnapshot

rsnapshot configuration, client and server side

10,295 downloads

10,295 latest version

1.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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 1.0.0 (latest)
released Jan 2nd 2013

Start using this module

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

Add this module to your Puppetfile:

mod 'loic-rsnapshot', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add loic-rsnapshot
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install loic-rsnapshot --version 1.0.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

loic/rsnapshot — version 1.0.0 Jan 2nd 2013

puppet-rsnapshot

Introduction

puppet-rsnapshot is a rsnapshot puppet module. It is based on the following assumptions:

  • All machines have rsync over ssh
  • All backups consist of the entire file system of the machine
  • It takes less than two hours to backup all machines

If this does not match the intended usage pattern, it may be better to consider an alternative.

A ssh key is created on the puppet master ( by the rsnapshot::puppetmaster class ) and installed in the root authorized_keys file of each machines to be backuped ( by the rsnapshot::client class ). The machine running rsnapshot has one configuration file per client ( generated by the rsnapshot::server class ). It runs each backup in sequence, starting in the middle of the night. The health of the backups can be monitored by nagios using a nagios plugin ( installed by the rsnapshot::nagios class ).

Usage

puppet-rsnapshot is a puppet module that should be installed in the puppet master as follows

git clone http://redmine.the.re/git/puppet-rsnapshot.git /etc/puppet/modules/rsnapshot

or

puppet module install puppet-rsnapshot

Here is an example usage of the module extracted from a manifest:

node 'bm0001.the.re' { class { 'rsnapshot::puppetmaster': } class { 'rsnapshot::client': excludes => [ '/var/lib/glance', '/var/lib/nova', '/media/turnkey', ] } }

node 'rsnapshot.novalocal' { class { 'rsnapshot::server': ip => "5.9.88.172,${::ipaddress}", } }

node 'jenkins.novalocal', 'redmine.novalocal', 'there.novalocal' { class { 'rsnapshot::client': ip => $::ipaddress, } }

node 'debian.novalocal' { class { 'rsnapshot::client': ip => $::ipaddress, excludes => [ '/media/debian' ], } } node 'nagios.novalocal' { class { 'rsnapshot::nagios: } }

For a detailed explanation of each class, check the documentation

License

Copyright (C) 2013 Loic Dachary loic@dachary.org

This program is free software: you can redistribute it and/or modify

it under the terms of the GNU Affero General Public License as published by

the Free Software Foundation, either version 3 of the License, or

(at your option) any later version.

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License

along with this program. If not, see http://www.gnu.org/licenses/.

Contact

Loic Dachary loic@dachary.org

Support

Please log tickets and issues at the project site