Add backup to nextcloud. Tricks load order I hope.
This commit is contained in:
parent
bf0abb8f51
commit
eaff825682
1 changed files with 20 additions and 0 deletions
|
@ -103,6 +103,26 @@ spec:
|
||||||
storage:
|
storage:
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
---
|
---
|
||||||
|
apiVersion: k8s.mariadb.com/v1alpha1
|
||||||
|
kind: Backup
|
||||||
|
metadata:
|
||||||
|
name: backup-local
|
||||||
|
namespace: home-server
|
||||||
|
spec:
|
||||||
|
mariaDbRef:
|
||||||
|
name: nextcloud-db
|
||||||
|
schedule:
|
||||||
|
cron: "0 1 * * *"
|
||||||
|
maxRetention: 168h
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /backups
|
||||||
|
name: backup-volume
|
||||||
|
volumes:
|
||||||
|
- name: backup-volume
|
||||||
|
hostPath:
|
||||||
|
path: /dpool/backups/mariadb
|
||||||
|
type: DirectoryOrCreate
|
||||||
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue