update openmediavault with new structure
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 19s

This commit is contained in:
2024-11-25 22:58:10 +00:00
parent 418badf14c
commit 6aae17706b
3 changed files with 32 additions and 33 deletions
+15 -31
View File
@@ -1,8 +1,8 @@
apiVersion: batch/v1
kind: Job
metadata:
name: nextcloud-notes-backup-job-python
namespace: nextcloud
name: rsync-glacier-job
namespace: backup
spec:
backoffLimit: 6
template:
@@ -10,45 +10,29 @@ spec:
containers:
- command:
- /bin/sh
- /config/export_notes.sh
env:
- name: PI_USER_USERNAME
valueFrom:
secretKeyRef:
key: PI_USER_USERNAME
name: nextcloud-credentials
- name: PI_USER_PASSWORD
valueFrom:
secretKeyRef:
key: PI_USER_PASSWORD
name: nextcloud-credentials
- /config/rsync.sh
image: alpine
imagePullPolicy: Always
name: notes-backup
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
name: rsync-glacier
volumeMounts:
- mountPath: /backup
name: notes
- mountPath: /var/www/html
name: nextcloud-webserver
- name: glacier-backup
mountPath: /destination
- name: ssd
mountPath: /source
- mountPath: /config
name: scripts
dnsPolicy: ClusterFirst
restartPolicy: Never
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: notes
- name: ssd
hostPath:
path: /ssd/
type: Directory
- name: glacier-backup
persistentVolumeClaim:
claimName: nextcloud-notes-backup
- name: nextcloud-webserver
persistentVolumeClaim:
claimName: nextcloud-webserver
claimName: openmediavault-backup
- configMap:
defaultMode: 365
name: nextcloud-export-scripts
name: rsync-scripts
name: scripts
ttlSecondsAfterFinished: 100
+15
View File
@@ -13,4 +13,19 @@ spec:
requests:
storage: 20Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: openmediavault-backup
namespace: backup
annotations:
fileType: Backup
spec:
storageClassName: nfs-storage-glacier
accessModes:
- ReadWriteMany
resources:
requests:
storage: 20Gi
@@ -5,8 +5,8 @@ data:
#sleep 3600
apk update
apk add rsync
rsync -avv /source/Backup /destination
rsync -avv /source/Image /destination
rsync -avvt /source/Backup /destination
rsync -avvt /source/Image /destination
kind: ConfigMap
metadata: