Sanoid - 5-minute-Snapshots (#66)
* neue Snapshots eingebaut, alle 5 Minuten * Einrückungen Sanoid
This commit is contained in:
parent
07c8e2f040
commit
6171970555
3 changed files with 15 additions and 12 deletions
|
@ -11,12 +11,13 @@
|
||||||
- .tmux.conf
|
- .tmux.conf
|
||||||
- .gitconfig
|
- .gitconfig
|
||||||
### mgrote.sanoid
|
### mgrote.sanoid
|
||||||
sanoid_snapshot_keep_hourly: '24'
|
|
||||||
sanoid_zfs_recursive: 'yes'
|
sanoid_zfs_recursive: 'yes'
|
||||||
sanoid_cron_minutes: '10,20,30,40,50,59'
|
|
||||||
sanoid_zfs_dataset: "hdd_data_raidz/data"
|
sanoid_zfs_dataset: "hdd_data_raidz/data"
|
||||||
|
sanoid_snapshot_interval_underhour: '5'
|
||||||
|
sanoid_snapshot_keep_underhour: '36'
|
||||||
sanoid_snapshot_keep_daily: '31'
|
sanoid_snapshot_keep_daily: '31'
|
||||||
sanoid_snapshot_keep_monthly: '6'
|
sanoid_snapshot_keep_monthly: '6'
|
||||||
|
sanoid_snapshot_keep_hourly: '24'
|
||||||
### mgrote.smart
|
### mgrote.smart
|
||||||
smart_smartctlmail_cron_minutes: "15"
|
smart_smartctlmail_cron_minutes: "15"
|
||||||
smart_smartctlmail_cron_hours: "6"
|
smart_smartctlmail_cron_hours: "6"
|
||||||
|
|
|
@ -22,16 +22,15 @@ function unlock() {
|
||||||
exlock
|
exlock
|
||||||
|
|
||||||
(
|
(
|
||||||
echo "--------------------------------------------------"
|
echo "--------------------------------------------------"
|
||||||
echo $(date) sanoid start
|
echo $(date) sanoid start
|
||||||
|
echo ""
|
||||||
echo ""
|
/usr/local/bin/sanoid --cron --verbose
|
||||||
/usr/local/bin/sanoid --cron --verbose
|
echo ""
|
||||||
echo ""
|
zfs list hdd_data_raidz/data -o space -t snapshot
|
||||||
zfs list hdd_data_raidz/data -o space -t snapshot
|
zfs list hdd_data_raidz/data/videos -o space -t snapshot
|
||||||
zfs list hdd_data_raidz/data/videos -o space -t snapshot
|
echo $(date) sanoid end
|
||||||
echo $(date) sanoid end
|
echo "--------------------------------------------------"
|
||||||
echo "--------------------------------------------------"
|
|
||||||
) >> /var/log/sanoid-cron.log 2>&1 &
|
) >> /var/log/sanoid-cron.log 2>&1 &
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
daily = {{ sanoid_snapshot_keep_daily }}
|
daily = {{ sanoid_snapshot_keep_daily }}
|
||||||
monthly = {{ sanoid_snapshot_keep_monthly }}
|
monthly = {{ sanoid_snapshot_keep_monthly }}
|
||||||
yearly = {{ sanoid_snapshot_keep_yearly }}
|
yearly = {{ sanoid_snapshot_keep_yearly }}
|
||||||
|
## Underhour - Snapshots
|
||||||
|
frequent_period = {{ sanoid_snapshot_interval_underhour }}
|
||||||
|
frequently = {{ sanoid_snapshot_keep_underhour }}
|
||||||
## Other Options
|
## Other Options
|
||||||
autosnap = {{ sanoid_auto_snap }}
|
autosnap = {{ sanoid_auto_snap }}
|
||||||
autoprune = {{ sanoid_auto_prune }}
|
autoprune = {{ sanoid_auto_prune }}
|
||||||
|
|
Loading…
Reference in a new issue