Verified Commit 10b0c46b authored by justin's avatar justin
Browse files

Add an rclone job for new SQL backups as well as old ones.

parent 5061642d
Pipeline #1467 passed with stage
in 16 seconds
......@@ -169,3 +169,39 @@ spec:
secret:
secretName: rclone-backup
restartPolicy: OnFailure
---
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: rclone-gke-sql-backups-to-dropbox
namespace: gitlab
spec:
suspend: false
schedule: "0 16 * * 2"
jobTemplate:
spec:
template:
spec:
containers:
- name: rclone-to-dropbox
image: rclone/rclone:1.52.2
args:
- --config
- /secrets/rclone-backup/rclone.conf
- -v
- copy
- --no-traverse
- --fast-list
- --size-only
- palpantlab-gcs:gke-palpantlab-sql-backups
- dropbox:gke-palpantlab-sql-backups
volumeMounts:
- name: rclone-backup-secret
mountPath: /secrets/rclone-backup
readOnly: true
volumes:
- name: rclone-backup-secret
secret:
secretName: rclone-backup
restartPolicy: OnFailure
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment