diff --git a/generic/rsync-backup-job.yaml b/generic/rsync-backup-job.yaml new file mode 100644 index 0000000..c8606c8 --- /dev/null +++ b/generic/rsync-backup-job.yaml @@ -0,0 +1,27 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: + backup-test +spec: + template: + spec: + containers: + - name: backup + image: instrumentisto/rsync-ssh:alpine3.16 + args: + - rsync + - -a + - /etc + - /mnt/etc-dir + volumeMounts: + - mountPath: /mnt + name: backup + restartPolicy: Never + nodeSelector: + kubernetes.io/hostname: "server101" + volumes: + - name: backup + hostPath: + path: /mnt + type: Directory