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
backup-db-dump
backup-directory "/media"
}
source /usr/local/lib/functions.sh

View file

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

View file

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