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