Mount correct volumes and use path in backup.sh
This commit is contained in:
parent
7d3e1ff03a
commit
bfea9abb5f
3 changed files with 13 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue