Files
apps
infrastructure
kluster-deployments
unused
anki
authelia
authentik
backup
base
overlays
backup
prune
kustomization.yaml
restic-commands.yaml
applying.md
backup.pvc.yaml
cert-manager
ddns
focalboard
freshrss
ingress-nginx
mathieu_ghost
portainer
raspap
searx
storage
syncthing
trilium
aio.deployment.yaml
aio.pvc.yaml
anonaddy.values.yaml
archive.deployment.yaml
crowdsec.ingress.yaml
crowdsec.nginx-bouncer.yaml
crowdsec.values.yaml
grsync.cronjob.yaml
jenkins.pvc.yaml
jenkins.values.yaml
mc-forwarding.deployment.yaml
nginx.values.yaml
nocodb.deployment.yaml
pihole.ingress.yaml
pihole.persistentvolume.yml
pihole.values.yml
prometheus.pv.yml
prometheus.values.yaml
pufferpanel.deployment.yaml
pufferpanel.ingress.yaml
pufferpanel.pvc.yaml
rocketchat.ingress.yaml
rocketchat.pvc.yaml
rocketchat.values.yaml
skooner.deployment.yaml
skooner.ingress.yaml
telegraf-nginx.values.yaml
webtop.deployment.yaml
.gitignore
README.md
k3s-infra/unused/backup/overlays/prune/restic-commands.yaml
2023-10-05 14:34:37 +02:00

24 lines
634 B
YAML

apiVersion: batch/v1
kind: CronJob
metadata:
name: prune-patch
spec:
schedule: "0 0 1/15 * *"
# at midnight, the first and 15. of every month
jobTemplate:
spec:
template:
spec:
containers:
- name: restic-base-container
args:
# >- strips newlines
# RESTIC_ARGS Can be for instance: --verbose --dry-run
# RESTIC_REPOSITORY is set in the secret
- >-
restic forget
-r $(RESTIC_REPOSITORY)
--verbose=2
--keep-daily 7 --keep-weekly 5
--prune