update backup naming
This commit is contained in:
parent
4f3e35acf8
commit
07c3a0f086
@ -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
|
||||
|
@ -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
|
@ -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"
|
@ -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
|
@ -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"
|
Loading…
x
Reference in New Issue
Block a user