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

View File

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

View File

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

View File

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

View File

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