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
|
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
|
||||||
|
|
|
@ -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
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue