system-config/modules/bup/manifests/site.pp
Paul Belanger 09fbdd5715 Puppet lint fixes
Also move contents of /etc/bup-excludes into a file

Change-Id: I206c08d05114cdacb18d00e4a4578679398990ec
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/15841
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-11-13 21:39:37 +00:00

14 lines
282 B
Puppet

# Define: bup::site
#
define bup::site(
$backup_user,
$backup_server
) {
cron { "bup-${name}":
user => 'root',
hour => '5',
minute => '37',
command => "tar -X /etc/bup-excludes -cPf - / | bup split -r ${backup_user}@${backup_server}: -n root -q",
}
}