mirror of
https://github.com/krislamo/puppet-rsnapshot
synced 2024-11-14 01:00:34 +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:
|
backup:
|
||||||
'/var': './var'
|
'/var': './var'
|
||||||
cron:
|
cron:
|
||||||
'daily':
|
mailto: 'bar1@example.com'
|
||||||
'minute': '0-10'
|
daily:
|
||||||
'hour': '1..5'
|
minute: '0-10'
|
||||||
|
hour: '1..5'
|
||||||
|
db1:
|
||||||
|
backup_scripts:
|
||||||
|
mysql:
|
||||||
|
misc:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -281,10 +285,18 @@ rsnapshot::hosts:
|
|||||||
hour: [ '20..23','0..2' ]
|
hour: [ '20..23','0..2' ]
|
||||||
weekly:
|
weekly:
|
||||||
hour: [ '20..23','0..2' ]
|
hour: [ '20..23','0..2' ]
|
||||||
|
|
||||||
webhost:
|
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`
|
#### `$backup_scripts`
|
||||||
Additional scripts to create, possible values are: mysql, psql, misc
|
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
|
You can set
|
||||||
|
|
||||||
@ -437,6 +449,7 @@ Default is:
|
|||||||
default => [],
|
default => [],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ class rsnapshot::config (
|
|||||||
$hosts_clean = assert_empty_hash($hosts)
|
$hosts_clean = assert_empty_hash($hosts)
|
||||||
|
|
||||||
$hosts_clean.each |String $host, $hash | {
|
$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)
|
$default_backup_dirs = pick($rsnapshot::default_backup, $rsnapshot::params::config_default_backup)
|
||||||
$backup_levels = pick($hash['backup_levels'], $rsnapshot::backup_levels, 'weekly')
|
$backup_levels = pick($hash['backup_levels'], $rsnapshot::backup_levels, 'weekly')
|
||||||
$backup = $hash['backup']
|
$backup = $hash['backup']
|
||||||
|
Loading…
Reference in New Issue
Block a user