Autorestic: Add scheduled autoprune

This commit is contained in:
GHOSCHT 2024-10-02 11:12:04 +02:00
parent 91a7f8b164
commit a92d376132
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82

View file

@ -64,8 +64,11 @@ in {
version: 2 version: 2
global: global:
forget: forget:
keep-weekly: 7 keep-last: 5
keep-weekly: 1
keep-monthly: 12 keep-monthly: 12
keep-yearly: 7
keep-within: '14d'
extras: extras:
default_hooks: &default_hooks default_hooks: &default_hooks
@ -81,6 +84,7 @@ in {
to: to:
- zfs - zfs
- eustachius - eustachius
forget: prune
cron: '0 4 * * 0' # Every Sunday at 4:00 cron: '0 4 * * 0' # Every Sunday at 4:00
hooks: hooks:
<<: *default_hooks <<: *default_hooks
@ -94,6 +98,7 @@ in {
- zfs - zfs
- ssd - ssd
- eustachius - eustachius
forget: prune
cron: '0 4 * * 0' # Every Sunday at 4:00 cron: '0 4 * * 0' # Every Sunday at 4:00
hooks: hooks:
<<: *default_hooks <<: *default_hooks
@ -106,6 +111,7 @@ in {
to: to:
- zfs - zfs
- eustachius - eustachius
forget: prune
cron: '0 4 * * 0' # Every Sunday at 4:00 cron: '0 4 * * 0' # Every Sunday at 4:00
hooks: hooks:
<<: *default_hooks <<: *default_hooks
@ -157,6 +163,7 @@ in {
to: to:
- zfs - zfs
- eustachius - eustachius
forget: prune
cron: '0 4 * * 0' # Every Sunday at 4:00 cron: '0 4 * * 0' # Every Sunday at 4:00
hooks: hooks:
<<: *default_hooks <<: *default_hooks
@ -182,6 +189,7 @@ in {
to: to:
- zfs - zfs
- eustachius - eustachius
forget: prune
cron: '0 4 * * 0' # Every Sunday at 4:00 cron: '0 4 * * 0' # Every Sunday at 4:00
hooks: hooks:
<<: *default_hooks <<: *default_hooks
@ -204,6 +212,7 @@ in {
from: /storage/dataset/docker/headscale from: /storage/dataset/docker/headscale
to: to:
- zfs - zfs
forget: prune
cron: '55 3 * * *' # Every Day at 3:55 cron: '55 3 * * *' # Every Day at 3:55
hooks: hooks:
<<: *default_hooks <<: *default_hooks
@ -217,6 +226,7 @@ in {
- zfs - zfs
- ssd - ssd
- eustachius - eustachius
forget: prune
cron: '55 3 * * *' # Every Day at 3:55 cron: '55 3 * * *' # Every Day at 3:55
hooks: hooks:
<<: *default_hooks <<: *default_hooks
@ -230,6 +240,7 @@ in {
- zfs - zfs
- ssd - ssd
- eustachius - eustachius
forget: prune
cron: '55 3 * * *' # Every Day at 3:55 cron: '55 3 * * *' # Every Day at 3:55
hooks: hooks:
<<: *default_hooks <<: *default_hooks
@ -243,6 +254,7 @@ in {
- zfs - zfs
- ssd - ssd
- eustachius - eustachius
forget: prune
cron: '55 3 * * *' # Every Day at 3:55 cron: '55 3 * * *' # Every Day at 3:55
hooks: hooks:
<<: *default_hooks <<: *default_hooks
@ -256,6 +268,7 @@ in {
- zfs - zfs
- ssd - ssd
- eustachius - eustachius
forget: prune
cron: '55 3 * * *' # Every Day at 3:55 cron: '55 3 * * *' # Every Day at 3:55
hooks: hooks:
<<: *default_hooks <<: *default_hooks