2021-02-07 10:53:08 +01:00
|
|
|
## mgrote.zfs_sanoid
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
### Beschreibung
|
2023-07-05 11:47:57 +02:00
|
|
|
Installiert und konfiguriert ``sanoid`` + ``syncoid``.
|
|
|
|
|
|
|
|
Es gibt 3 Funktionen:
|
|
|
|
|
|
|
|
1. Snapshots erstellen und entfernen
|
|
|
|
2. Snapshots senden
|
|
|
|
3. Snapshots empfangen
|
2020-08-18 11:57:53 +02:00
|
|
|
|
2021-07-16 12:52:43 +02:00
|
|
|
### getestet auf
|
2023-07-05 11:47:57 +02:00
|
|
|
- ProxMox 7.*
|
|
|
|
- Ubuntu 20.04
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
### Variablen + Defaults
|
2021-11-23 21:04:03 +01:00
|
|
|
- see [defaults](./defaults/main.yml)
|
2023-07-05 11:47:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
### Beispiel Playbook
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
---
|
|
|
|
- hosts: host1,host2
|
|
|
|
roles:
|
2023-10-25 22:26:17 +02:00
|
|
|
- { role: mgrote_zfs_sanoid, tags: "sanoid" }
|
2023-07-05 11:47:57 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
### Beispiel - Snapshots erstellen
|
|
|
|
|
|
|
|
|
|
|
|
#### Variablen
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
---
|
|
|
|
sanoid_snaps_enable: true
|
|
|
|
sanoid_datasets:
|
2023-11-29 22:24:57 +01:00
|
|
|
- path: 'hdd_data/videos'
|
2023-07-05 11:47:57 +02:00
|
|
|
template: '31tage'
|
|
|
|
recursive: 'yes'
|
|
|
|
snapshots: true
|
|
|
|
sanoid_templates:
|
|
|
|
- name: '31tage'
|
|
|
|
keep_hourly: '24' # Aufheben (Stunde)
|
|
|
|
keep_daily: '31' # Aufheben (Tage)
|
|
|
|
keep_monthly: '3' # Aufheben (Monate)
|
|
|
|
keep_yearly: '0' # Aufheben (Jahre)
|
|
|
|
frequently: '16' # Aufheben (Minuten)
|
|
|
|
frequent_period: '15' # Intervall (alle 5 Minuten)
|
|
|
|
autosnap: 'yes' # Automatisches erstellen von Snapshots
|
|
|
|
autoprune: 'yes'
|
|
|
|
|
|
|
|
```
|