34 lines
743 B
YAML
34 lines
743 B
YAML
|
---
|
||
|
apiVersion: batch/v1
|
||
|
kind: Job
|
||
|
metadata:
|
||
|
name: sync-garage-snips
|
||
|
namespace: garage
|
||
|
spec:
|
||
|
ttlSecondsAfterFinished: 100
|
||
|
template:
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: rclone
|
||
|
image: rclone/rclone
|
||
|
args:
|
||
|
- sync
|
||
|
- -P
|
||
|
- --update
|
||
|
- --no-update-modtime
|
||
|
- --no-update-dir-modtime
|
||
|
- --ignore-errors
|
||
|
- -s3-upload-concurrency 64
|
||
|
- -v
|
||
|
- r2:backup/snips
|
||
|
- garage:backup/snips
|
||
|
volumeMounts:
|
||
|
- name: rclone-config
|
||
|
mountPath: /config/rclone
|
||
|
restartPolicy: Never
|
||
|
volumes:
|
||
|
- name: rclone-config
|
||
|
secret:
|
||
|
secretName: rclone-config
|
||
|
defaultMode: 420
|