Rename backup to bup.
Naming it after what it installs. Also, split the target cronjob into a define. Change-Id: I73a4383f529c60bc35c60241dfc91508965d755e Reviewed-on: https://review.openstack.org/10885 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
This commit is contained in:
commit
10c5b9ee2e
23
manifests/init.pp
Normal file
23
manifests/init.pp
Normal file
@ -0,0 +1,23 @@
|
||||
class bup {
|
||||
package { "bup":
|
||||
ensure => present
|
||||
}
|
||||
|
||||
file { "/etc/bup-excludes":
|
||||
ensure => present,
|
||||
content => "/proc/*
|
||||
/sys/*
|
||||
/dev/*
|
||||
/tmp/*
|
||||
/floppy/*
|
||||
/cdrom/*
|
||||
/var/spool/squid/*
|
||||
/var/spool/exim/*
|
||||
/media/*
|
||||
/mnt/*
|
||||
/var/agentx/*
|
||||
/run/*
|
||||
"
|
||||
}
|
||||
|
||||
}
|
8
manifests/site.pp
Normal file
8
manifests/site.pp
Normal file
@ -0,0 +1,8 @@
|
||||
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",
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user