Update pbs-client image on backups.
This commit is contained in:
@@ -34,46 +34,39 @@ spec:
|
||||
#mysqldump --column-statistics=0 -u ${MYSQL_USER} -h ${MYSQL_HOST} ${MYSQL_DB} > /data/mariadb-export/backup.sql
|
||||
mysqldump -u ${MYSQL_USER} -h ${MYSQL_HOST} ${MYSQL_DB} > /data/mariadb-export/backup.sql
|
||||
echo "TRACE: Exporting database finished"
|
||||
|
||||
env:
|
||||
- name: MYSQL_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-mariadb
|
||||
key: MARIADB_USER
|
||||
|
||||
- name: MYSQL_PWD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-mariadb
|
||||
key: MARIADB_PASSWORD
|
||||
|
||||
- name: MYSQL_DB
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-mariadb
|
||||
key: MARIADB_DATABASE
|
||||
|
||||
- name: MYSQL_HOST
|
||||
value: nextcloud-mariadb.cloud-limbosolutions-com.svc.cluster.local
|
||||
|
||||
volumeMounts:
|
||||
- name: backup-var
|
||||
mountPath: /data/mariadb-export
|
||||
subPath: mariadb-export
|
||||
|
||||
|
||||
- name: backup-var
|
||||
mountPath: /data/mariadb-export
|
||||
subPath: mariadb-export
|
||||
containers:
|
||||
- name: gitea-pbs-client
|
||||
### Maintained by flux - Image Update Automation
|
||||
image: oci.limbosolutions.com/public/pbs-client:latest # {"$imagepolicy": "cloud-limbosolutions-com:pbs-client"}
|
||||
image: oci.limbosolutions.com/public/pbs-client:latest@sha256:8565b9d420051cdbd4a9054f29ada099d5c70554218aaed0078ec533117406fc # {"$imagepolicy": "cloud-limbosolutions-com:pbs-client"}
|
||||
###
|
||||
env:
|
||||
- name: PBS_REPOSITORY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: backup-secret
|
||||
key: PBS_REPOSITORY
|
||||
key: PBS_REPOSITORY
|
||||
- name: PBS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
@@ -84,7 +77,6 @@ spec:
|
||||
secretKeyRef:
|
||||
name: backup-secret
|
||||
key: PBS_FINGERPRINT
|
||||
|
||||
command: ["bash", "-c"]
|
||||
args:
|
||||
- |
|
||||
@@ -93,31 +85,23 @@ spec:
|
||||
proxmox-backup-client backup nextcloud-html.pxar:/data/nextcloud-html mariadb-data.pxar:/data/mariadb-data mariadb-export.pxar:/data/mariadb-export --include-dev /data/nextcloud-html --include-dev /data/mariadb-data --include-dev /data/mariadb-export --backup-id "nextcloud-full" -ns cloud.limbosolutions.com && \
|
||||
SCRIPT_DURATION=$(($(date +%s) - SCRIPT_START_TIME)) && \
|
||||
echo "INFO: Finished Backup of cloud.limbosolutions.com ($((SCRIPT_DURATION / 60 / 60)):$((SCRIPT_DURATION / 60)):$((SCRIPT_DURATION % 60)))"
|
||||
|
||||
volumeMounts:
|
||||
- name: nextcloud-html
|
||||
mountPath: /data/nextcloud-html
|
||||
|
||||
- name: db-data
|
||||
mountPath: /data/mariadb-data
|
||||
|
||||
- name: backup-var
|
||||
mountPath: /tmp
|
||||
subPath: tmp
|
||||
|
||||
- name: backup-var
|
||||
mountPath: /data/mariadb-export
|
||||
subPath: mariadb-export
|
||||
|
||||
- name: nextcloud-html
|
||||
mountPath: /data/nextcloud-html
|
||||
- name: db-data
|
||||
mountPath: /data/mariadb-data
|
||||
- name: backup-var
|
||||
mountPath: /tmp
|
||||
subPath: tmp
|
||||
- name: backup-var
|
||||
mountPath: /data/mariadb-export
|
||||
subPath: mariadb-export
|
||||
volumes:
|
||||
- name: nextcloud-html
|
||||
persistentVolumeClaim:
|
||||
claimName: nextcloud-nextcloud
|
||||
|
||||
- name: db-data
|
||||
persistentVolumeClaim:
|
||||
claimName: mariadb-data-nextcloud-mariadb-0
|
||||
|
||||
- name: backup-var
|
||||
emptyDir: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user