Verified Commit cc21c6e4 authored by justin's avatar justin
Browse files

Add rsync-to-dropbox for CloudSQL backup bucket.

parent 7e328aef
Pipeline #730 passed with stage
in 14 seconds
......@@ -134,3 +134,38 @@ spec:
secret:
secretName: rclone-backup
restartPolicy: OnFailure
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: rclone-gke-cloudsql-backups-to-dropbox
namespace: gitlab
spec:
suspend: false
schedule: "0 16 * * 2"
jobTemplate:
spec:
template:
spec:
containers:
- name: rclone-to-dropbox
image: rclone/rclone
args:
- --config
- /secrets/rclone-backup/rclone.conf
- -v
- copy
- --no-traverse
- --fast-list
- --size-only
- palpantlab-gcs:gcloud-cloudsql-backups
- dropbox:gcloud-cloudsql-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