2020-08-18 11:57:53 +02:00
|
|
|
---
|
2021-11-23 21:04:03 +01:00
|
|
|
### under which user the script is run
|
|
|
|
sanoid_user_group: "root"
|
|
|
|
sanoid_user: "sanoid"
|
|
|
|
|
|
|
|
### where to store the logfile
|
|
|
|
sanoid_log_file: "/var/log/sanoid-cron.log"
|
|
|
|
|
2021-11-23 21:26:18 +01:00
|
|
|
### where to download the binary + config
|
2021-11-23 21:04:03 +01:00
|
|
|
sanoid_dl_url: "https://raw.githubusercontent.com/jimsalterjrs/sanoid/master/sanoid"
|
|
|
|
sanoid_dl_conf_url: "https://raw.githubusercontent.com/jimsalterjrs/sanoid/master/sanoid.defaults.conf"
|
|
|
|
|
|
|
|
### when should the script be run
|
2020-08-18 11:57:53 +02:00
|
|
|
sanoid_cron_hours: '*'
|
|
|
|
sanoid_cron_minutes: '*'
|
|
|
|
|
2020-12-30 23:49:26 +01:00
|
|
|
### "Default" Datasets
|
2021-11-23 21:04:03 +01:00
|
|
|
sanoid_datasets: # dictionary
|
|
|
|
- path: 'hdd_data_raidz/data' # path to dataset; without leading /
|
|
|
|
template: 'fiveminutes' # name
|
|
|
|
recursive: 'no' # recursive snapshotting
|
|
|
|
snapshots: true # (de)activate; can be used to disable snapshotting of subdatasets if recursive is set
|
2020-12-31 01:36:22 +01:00
|
|
|
- path: 'hdd_data_raidz/videos'
|
|
|
|
template: 'hourly'
|
2021-03-19 23:07:23 +01:00
|
|
|
recursive: 'yes'
|
|
|
|
snapshots: true
|
|
|
|
- path: 'hdd_data_raidz/test'
|
|
|
|
snapshots: false # deaktiviert sanoid für das dataset
|
2020-12-31 01:36:22 +01:00
|
|
|
|
|
|
|
### Templates
|
|
|
|
sanoid_templates:
|
|
|
|
- name: 'fiveminutes'
|
|
|
|
keep_hourly: '24' # Aufheben (Stunde)
|
|
|
|
keep_daily: '31' # Aufheben (Tage)
|
|
|
|
keep_monthly: '6' # Aufheben (Monate)
|
|
|
|
keep_yearly: '0' # Aufheben (Jahre)
|
|
|
|
frequently: '36' # Aufheben (Minuten)
|
|
|
|
frequent_period: '5' # Intervall (alle 5 Minuten)
|
|
|
|
autosnap: 'yes' # Automatisches erstellen von Snapshots
|
|
|
|
autoprune: 'yes'
|
|
|
|
- name: 'hourly'
|
|
|
|
keep_hourly: '24'
|
|
|
|
keep_daily: '31'
|
|
|
|
keep_monthly: '6'
|
|
|
|
keep_yearly: '1'
|
|
|
|
frequently: '0'
|
|
|
|
frequent_period: '0'
|
|
|
|
autosnap: 'yes'
|
|
|
|
autoprune: 'yes'
|
|
|
|
- name: 'daily'
|
|
|
|
keep_hourly: '0'
|
|
|
|
keep_daily: '31'
|
|
|
|
keep_monthly: '6'
|
|
|
|
keep_yearly: '1'
|
|
|
|
frequently: '0'
|
|
|
|
frequent_period: '0'
|
|
|
|
autosnap: 'yes'
|
|
|
|
autoprune: 'yes'
|