rsnapshot

Rsnapshot master and node configuration with auto generated and distributed ssh keys.

Ivaldi

ivaldi

9,650 downloads

8,130 latest version

2.6 quality score

Version information

  • 0.3.1 (latest)
  • 0.3.0
  • 0.2.0
  • 0.1.0
  • 0.0.2
  • 0.0.1
released Apr 2nd 2015
This version is compatible with:
  • Debian
    ,
    Ubuntu

Start using this module

Documentation

ivaldi/rsnapshot — version 0.3.1 Apr 2nd 2015

#rsnapshot

##Overview The rsnapshot module allows you to setup an rsnapshot backup master and rsnapshot backup nodes. Each node is automatically added to the master and backuped using a cronjob on the master.

##Setup ###Installing a rsnapshot master server To setup a rsnapshot master server with location name dc1, add the following lines to its puppet configuration.

class { 'rsnapshot::master':
  location_name => 'dc1',
  exclusions    => ['var/spool'],
}

This will install rsnapshot, generate a ssh key pair and setup cronjobs to run rsnapshot as root.

###Adding rsnapshot nodes For every server that needs to be backed up to the previously configures rsnapshot master, add the following lines.

class { 'rsnapshot::node':
  to_location => 'dc1',
}

This will add the ssh public key of the rsnapshot master with location_name dc1 to the authorized_keys file of root, allowing rsnapshot to login from the master server. On the rsnapshot master, this will add a line to /etc/rsnapshot.conf to backup this node.

###Increasing security Optionally you might want to use a special backup user so you can disable root to login via ssh, this can be done by using the following syntax.

class { 'rsnapshot::node':
  to_location => 'dc1',
  user        => 'rsnapshot',
}

This will create the user rsnapshot on the node, give it permission to run sudo rsync and add the public key of the rsnapshot master with location_name dc1 to the authorized_keys file of root, allowing rsnapshot to login from the master server as this new rsnapshot user.