Mount correct volumes and use path in backup.sh

This commit is contained in:
erik 2023-10-18 11:36:08 +02:00
parent 7d3e1ff03a
commit bfea9abb5f
3 changed files with 13 additions and 10 deletions

View file

@ -9,6 +9,7 @@ function main() {
file_env RESTIC_MONTHS_TO_KEEP 12 file_env RESTIC_MONTHS_TO_KEEP 12
backup-db-dump backup-db-dump
backup-directory "/media"
} }
source /usr/local/lib/functions.sh source /usr/local/lib/functions.sh

View file

@ -59,15 +59,16 @@ spec:
- name: CERTIFICATE_FILE - name: CERTIFICATE_FILE
value: "" value: ""
volumeMounts: volumeMounts:
- name: taiga-data-volume - name: taiga-media
mountPath: /var/backups mountPath: /media
readOnly: true
- name: backup-secret-volume - name: backup-secret-volume
mountPath: /var/run/secrets/backup-secrets mountPath: /var/run/secrets/backup-secrets
readOnly: true readOnly: true
volumes: # ToDo check correct volumes volumes:
- name: taiga-data-volume - name: taiga-media
persistentVolumeClaim: persistentVolumeClaim:
claimName: taiga-data-pvc claimName: taiga-media-data
- name: backup-secret-volume - name: backup-secret-volume
secret: secret:
secretName: backup-secret secretName: backup-secret

View file

@ -55,15 +55,16 @@ spec:
- name: CERTIFICATE_FILE - name: CERTIFICATE_FILE
value: "" value: ""
volumeMounts: volumeMounts:
- name: taiga-data-volume - name: taiga-media
mountPath: /var/backups mountPath: /media
readOnly: true
- name: backup-secret-volume - name: backup-secret-volume
mountPath: /var/run/secrets/backup-secrets mountPath: /var/run/secrets/backup-secrets
readOnly: true readOnly: true
volumes: #ToDo: check correct volumes volumes:
- name: taiga-data-volume - name: taiga-media
persistentVolumeClaim: persistentVolumeClaim:
claimName: taiga-data-pvc claimName: taiga-media-data
- name: backup-secret-volume - name: backup-secret-volume
secret: secret:
secretName: backup-secret secretName: backup-secret