1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2024-12-16 17:50:34 +00:00

fix README.md

This commit is contained in:
Norbert Varzariu 2016-01-05 15:24:26 +01:00
parent 8e199572f5
commit 80ef1f5806

View File

@ -66,6 +66,7 @@ Here are some more elaborate examples of what you can do with this module.
### Examples
This will backup localhost with defaults. It will disable the default backup locations for example.com
and just backup '/var' for example.com.
```puppet
class { '::rsnapshot':
hosts => {
@ -79,7 +80,9 @@ class { '::rsnapshot':
}
}
```
The same in hiera:
```yaml
---
classes: rsnapshot
@ -94,6 +97,7 @@ rsnapshot::hosts:
A more complete hiera example:
```yaml
---
classes:
@ -256,6 +260,7 @@ rsnapshot::hosts:
```
Hash is of the form:
```puppet
$cron =>{
daily => {
@ -271,6 +276,7 @@ $cron =>{
```
Default is:
```puppet
$cron = {
hourly => {
@ -308,6 +314,7 @@ Default is:
global. the directory holding your backups.
(Default: /backup)
You will end up with a structure like:
```
/backup/
├── example.com
@ -329,6 +336,7 @@ You will end up with a structure like:
#### `$interval`
How many backups of each level to keep.
Default is:
```puppet
$interval = {
'daily' => '7',