update backup naming

This commit is contained in:
Remy Moll 2024-09-30 15:28:34 +02:00
parent 4f3e35acf8
commit 07c3a0f086
5 changed files with 13 additions and 13 deletions

View File

@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: restic-rclone-gdrive
name: restic-backblaze
spec:
successfulJobsHistoryLimit: 2
@ -12,7 +12,7 @@ spec:
template:
spec:
restartPolicy: Never
hostname: restic-k3s-pod
hostname: restic-kluster
# used by restic to identify the host
containers:
# run after completion of initContainers
@ -62,7 +62,7 @@ spec:
secretKeyRef:
name: backblaze-credentials
key: key-id
- name: AWS_ACCESS_KEY
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: backblaze-credentials

View File

@ -13,12 +13,12 @@ patches:
- path: restic-commands.yaml
target:
kind: CronJob
name: restic-rclone-gdrive
name: restic-backblaze
- target:
kind: CronJob
name: restic-rclone-gdrive
name: restic-backblaze
# replace the name of the cronjob
patch: |-
- op: replace
path: /metadata/name
value: restic-gdrive-backup
value: restic-backblaze-backup

View File

@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: restic-gdrive-backup
name: restic-backblaze-backup
spec:
schedule: "0 2 * * *"
# at 2:00, every day
@ -27,4 +27,4 @@ spec:
- name: ntfy-command-send
env:
- name: OPERATION
value: "Restic backup to gdrive"
value: "Restic backup to backblaze"

View File

@ -11,12 +11,12 @@ patches:
- path: restic-commands.yaml
target:
kind: CronJob
name: restic-rclone-gdrive
name: restic-backblaze
- target:
kind: CronJob
name: restic-rclone-gdrive
name: restic-backblaze
# replace the name of the cronjob
patch: |-
- op: replace
path: /metadata/name
value: restic-gdrive-prune
value: restic-backblaze-prune

View File

@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: restic-gdrive-prune
name: restic-backblaze-prune
spec:
schedule: "0 0 1/15 * *"
# at midnight, the first and 15. of every month
@ -28,4 +28,4 @@ spec:
- name: ntfy-command-send
env:
- name: OPERATION
value: "Restic prune on gdrive"
value: "Restic prune on backblaze"