mirror of
https://github.com/krislamo/puppet-rsnapshot
synced 2024-12-16 09:40:35 +00:00
update README
This commit is contained in:
parent
441c6a0584
commit
46a0a4faaf
29
README.md
29
README.md
@ -133,10 +133,14 @@ rsnapshot::hosts:
|
||||
backup:
|
||||
'/var': './var'
|
||||
cron:
|
||||
'daily':
|
||||
'minute': '0-10'
|
||||
'hour': '1..5'
|
||||
|
||||
mailto: 'bar1@example.com'
|
||||
daily:
|
||||
minute: '0-10'
|
||||
hour: '1..5'
|
||||
db1:
|
||||
backup_scripts:
|
||||
mysql:
|
||||
misc:
|
||||
|
||||
```
|
||||
|
||||
@ -281,10 +285,18 @@ rsnapshot::hosts:
|
||||
hour: [ '20..23','0..2' ]
|
||||
weekly:
|
||||
hour: [ '20..23','0..2' ]
|
||||
|
||||
webhost:
|
||||
|
||||
customervm.provider.com:
|
||||
backup_user: 'customer'
|
||||
```
|
||||
|
||||
Mails for webhost will go to admin@example.com (from the global override), those for webserver will go to support@example.com.
|
||||
`webhost`: Mails will go to `admin@example.com` (from the global override).
|
||||
|
||||
`webserver`: Mails will go to `support@example.com`.
|
||||
|
||||
`customervm.provider.com`: The backup (and thus ssh) user will be `customer@customervm.provider.com`
|
||||
|
||||
|
||||
|
||||
@ -380,11 +392,11 @@ Default is:
|
||||
#### `$backup_scripts`
|
||||
Additional scripts to create, possible values are: mysql, psql, misc
|
||||
|
||||
mysql: used for mysql backups
|
||||
`mysql`: used for mysql backups
|
||||
|
||||
psql: used for postgresql backups
|
||||
`psql`: used for postgresql backups
|
||||
|
||||
misc: custom commands to run on the node
|
||||
`misc`: custom commands to run on the node
|
||||
|
||||
You can set
|
||||
|
||||
@ -437,6 +449,7 @@ Default is:
|
||||
default => [],
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
|
@ -36,7 +36,7 @@ class rsnapshot::config (
|
||||
$hosts_clean = assert_empty_hash($hosts)
|
||||
|
||||
$hosts_clean.each |String $host, $hash | {
|
||||
$backup_user = pick($hash['backup_user'], $rsnapshot::params::config_backup_user)
|
||||
$backup_user = pick($hash['backup_user'], $rsnapshot::backup_user, $rsnapshot::params::config_backup_user, 'root')
|
||||
$default_backup_dirs = pick($rsnapshot::default_backup, $rsnapshot::params::config_default_backup)
|
||||
$backup_levels = pick($hash['backup_levels'], $rsnapshot::backup_levels, 'weekly')
|
||||
$backup = $hash['backup']
|
||||
|
Loading…
Reference in New Issue
Block a user