Update pbs-client image on backups.

This commit is contained in:
FluxCD
2026-07-18 13:42:48 +00:00
parent 91f5fec9ec
commit 90dae62f41
+1 -17
View File
@@ -34,39 +34,32 @@ 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
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
@@ -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
volumes:
- name: nextcloud-html
persistentVolumeClaim:
claimName: nextcloud-nextcloud
- name: db-data
persistentVolumeClaim:
claimName: mariadb-data-nextcloud-mariadb-0
- name: backup-var
emptyDir: {}