| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- apiVersion: batch/v1
- kind: Job
- metadata:
- name: backup-remote
- spec:
- template:
- spec:
- containers:
- - args: ["sync", "--verbose", "--verbose", "--cache-workers", "4", "--transfers", "4", "--retries", "32", "--oos-attempt-resume-upload", "--oos-leave-parts-on-error", "/data/repo", "oos:backup"]
- image: rclone/rclone:1.68
- imagePullPolicy: IfNotPresent
- name: rclone-cli
- volumeMounts:
- - name: restic-repo-vol
- mountPath: /data/repo
- - name: rclone-conf-vol
- mountPath: /config/rclone
- - name: oci-conf-vol
- mountPath: /config/oci
- - name: oci-api-key-vol
- mountPath: /config/oci-keys
- volumes:
- - name: restic-repo-vol
- hostPath:
- path: /data/backup
- type: Directory
- - name: rclone-conf-vol
- configMap:
- name: rclone-config-oos
- items:
- - key: rclone.conf
- path: rclone.conf
- - name: oci-conf-vol
- configMap:
- name: rclone-config-oos
- items:
- - key: oci.conf
- path: config
- - name: oci-api-key-vol
- secret:
- secretName: rclone-remote-backup-api-key
- restartPolicy: Never
- nodeSelector:
- kubernetes.io/hostname: raspberrypi4
|