Skip to content

Commit 9491883

Browse files
authored
mysqldump - cleanup statefile too (#223)
Signed-off-by: André Bauer <monotek23@gmail.com>
1 parent 18d78dc commit 9491883

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

charts/mysqldump/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
2-
version: 7.0.1
3-
appVersion: v3.2.13
2+
version: 7.0.2
3+
appVersion: v3.2.17
44
description: A Helm chart to help backup MySQL databases using mysqldump
55
name: mysqldump
66
keywords:
@@ -19,6 +19,6 @@ maintainers:
1919
type: application
2020
dependencies:
2121
- name: mariadb
22-
version: 20.4.2
23-
repository: "https://charts.bitnami.com/bitnami"
22+
version: 24.0.0
23+
repository: oci://registry-1.docker.io/bitnamicharts
2424
condition: mariadb.enabled

charts/mysqldump/templates/configmap-script.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ data:
6060
6161
{{- if and (or (.Values.persistence.enabled) (.Values.persistentVolumeClaim)) (.Values.housekeeping.enabled) }}
6262
echo "Deleting old backups"
63-
find ${BACKUP_DIR} -type d -name 'lost+found' -prune -o -maxdepth 2 -mtime +${KEEP_DAYS} -regex "^${BACKUP_DIR}/.*[0-9]*_.*\.sql\.gz$" -type f -exec rm {} \;
63+
find ${BACKUP_DIR} -type d -name 'lost+found' -prune -o -maxdepth 2 -mtime +${KEEP_DAYS} -regex "^${BACKUP_DIR}/.*[0-9]*(_.*\.sql\.gz|\.state)$" -type f -exec rm {} \;
6464
{{- end }}
6565
6666
{{- if .Values.debug }}

0 commit comments

Comments
 (0)