Adding velero scheduled backup and dropbo sync
This commit is contained in:
+45
-45
@@ -1,45 +1,45 @@
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: rclone-dropbox-config
|
||||
namespace: mailu
|
||||
apiVersion: v1
|
||||
data:
|
||||
rclone.conf: |
|
||||
[dropbox]
|
||||
type = dropbox
|
||||
token = {"access_token":"17hvEArIh3cAAAAAAAGTXUfwkGdz8EC_rDcEseLmSRltQoUz_AVceuUewx0sGMQ1","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}
|
||||
---
|
||||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: backup-mailu
|
||||
namespace: mailu
|
||||
spec:
|
||||
schedule: "30 4 * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: backup-mailu
|
||||
image: iptizer/swiss
|
||||
volumeMounts:
|
||||
- name: rclone-dropbox-config
|
||||
mountPath: /rclone.conf
|
||||
subPath: "rclone.conf"
|
||||
- mountPath: /data/
|
||||
name: data
|
||||
command:
|
||||
- "/bin/bash"
|
||||
- "-c"
|
||||
args:
|
||||
- "cd / && tar zcvf - /data/ | /usr/bin/rclone --config /rclone.conf -v rcat dropbox:server_backup/$( /bin/expr $( date +%m ) % 3 )_$( /bin/expr $( date +%j ) % 3 )_mailu.tar.gz"
|
||||
volumes:
|
||||
- name: rclone-dropbox-config
|
||||
configMap:
|
||||
name: rclone-dropbox-config
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: mailu-storage
|
||||
restartPolicy: Never
|
||||
# kind: ConfigMap
|
||||
# metadata:
|
||||
# creationTimestamp: null
|
||||
# name: rclone-dropbox-config
|
||||
# namespace: mailu
|
||||
# apiVersion: v1
|
||||
# data:
|
||||
# rclone.conf: |
|
||||
# [dropbox]
|
||||
# type = dropbox
|
||||
# token = {"access_token":"17hvEArIh3cAAAAAAAGTXUfwkGdz8EC_rDcEseLmSRltQoUz_AVceuUewx0sGMQ1","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}
|
||||
# ---
|
||||
# apiVersion: batch/v1beta1
|
||||
# kind: CronJob
|
||||
# metadata:
|
||||
# name: backup-mailu
|
||||
# namespace: mailu
|
||||
# spec:
|
||||
# schedule: "30 4 * * *"
|
||||
# jobTemplate:
|
||||
# spec:
|
||||
# template:
|
||||
# spec:
|
||||
# containers:
|
||||
# - name: backup-mailu
|
||||
# image: iptizer/swiss
|
||||
# volumeMounts:
|
||||
# - name: rclone-dropbox-config
|
||||
# mountPath: /rclone.conf
|
||||
# subPath: "rclone.conf"
|
||||
# - mountPath: /data/
|
||||
# name: data
|
||||
# command:
|
||||
# - "/bin/bash"
|
||||
# - "-c"
|
||||
# args:
|
||||
# - "cd / && tar zcvf - /data/ | /usr/bin/rclone --config /rclone.conf -v rcat dropbox:server_backup/$( /bin/expr $( date +%m ) % 3 )_$( /bin/expr $( date +%j ) % 3 )_mailu.tar.gz"
|
||||
# volumes:
|
||||
# - name: rclone-dropbox-config
|
||||
# configMap:
|
||||
# name: rclone-dropbox-config
|
||||
# - name: data
|
||||
# persistentVolumeClaim:
|
||||
# claimName: mailu-storage
|
||||
# restartPolicy: Never
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
mailuVersion: master
|
||||
hostnames:
|
||||
- mail.moritzgraf.de
|
||||
- moritzgraf.de
|
||||
domain: moritzgraf.de
|
||||
secretKey: fa5faeD9aegietaesahbiequ5Pe9au
|
||||
subnet: 10.233.0.0/16
|
||||
|
||||
Reference in New Issue
Block a user