Commit 57fd1de8 authored by Silvio Rhatto's avatar Silvio Rhatto

Merge branch 'master' of git://labs.riseup.net/module_backupninja

parents bc167339 0b9d05cf
......@@ -20,6 +20,7 @@ backupninja::mysql { all_databases:
sqldump => true
}
include backupninja::client::rdiff_backup
backupninja::rdiff { backup_all:
directory => '/media/backupdisk',
include => ['/var/backups', '/home', '/var/lib/dpkg/status'],
......@@ -35,6 +36,16 @@ A remote rdiff backup handler:
user => "backup-$hostname",
}
If you include the backupninja::client::rdiff_backup class, you will
get the rdiff-backup package installed automatically, this also works
for the backupninja::client::maildir class (installs needed rsync package)
If you need to specify a specific version of the rdiff-backup, or rsync package, you can do so
by specifying the variables:
$rdiff_backup_ensure_version = "1.2.5-1~bpo40+1"
$rsync_ensure_version = "3.0.6-1~bpo50+1"
If you configure a backupninja::server, it will collect those users and create
them. We have yet to create proper authorized_keys management to make that
process completely automatic.
......
......@@ -86,4 +86,22 @@ class backupninja::client {
}
}
class backupninja::client::maildir inherits backupninja::client {
if !defined(Package["rsync"]) {
if $rsync_ensure_version == '' { $rsync_ensure_version = 'installed' }
package { 'rsync':
ensure => $rsync_ensure_version,
}
}
}
class backupninja::client::rdiff_backup inherits backupninja::client {
if !defined(Package["rdiff-backup"]) {
if $rdiff_backup_ensure_version == '' { $rdiff_backup_ensure_version = 'installed' }
package { 'rdiff-backup':
ensure => $rdiff_backup_ensure_version,
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment