26 lines
722 B
YAML
26 lines
722 B
YAML
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
name: backup-patch
|
|
spec:
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: restic-base-container
|
|
args:
|
|
# >- strips newlines
|
|
# RESTIC_ARGS Can be for instance: --verbose --dry-run
|
|
# restic_reository is set in the secret
|
|
- >-
|
|
restic backup
|
|
-r $(RESTIC_REPOSITORY)
|
|
--verbose=2
|
|
/data
|
|
--exclude=s3/
|
|
# &&
|
|
# restic
|
|
# -r $(RESTIC_REPOSITORY)
|
|
# list snapshots
|
|
# Add command to copy existing backups to here! |