mirror of
https://github.com/bitnami/charts.git
synced 2026-02-11 12:57:08 +08:00
[bitnami/influxdb] Fix backup functionality, closes bitnami#33038 (#33092)
* fix(bitnami/influxdb): backup functionality, closes #33038 Signed-off-by: shadow1runner <shadow1runner@users.noreply.github.com> * Update Chart.yaml Signed-off-by: shadow1runner <shadow1runner@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> --------- Signed-off-by: shadow1runner <shadow1runner@users.noreply.github.com> Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 6.6.6 (2025-04-16)
|
||||
## 6.6.7 (2025-04-21)
|
||||
|
||||
* [bitnami/influxdb] Add revisionHistoryLimit variable ([#32509](https://github.com/bitnami/charts/pull/32509))
|
||||
* [bitnami/influxdb] Fix backup functionality, closes bitnami#33038 ([#33092](https://github.com/bitnami/charts/pull/33092))
|
||||
|
||||
## <small>6.6.6 (2025-04-21)</small>
|
||||
|
||||
* [bitnami/influxdb] Add revisionHistoryLimit variable (#32509) ([54ba28d](https://github.com/bitnami/charts/commit/54ba28d9a28249fb731b151b58dcaac00bbfa076)), closes [#32509](https://github.com/bitnami/charts/issues/32509)
|
||||
|
||||
## <small>6.6.5 (2025-04-15)</small>
|
||||
|
||||
|
||||
@@ -38,4 +38,4 @@ maintainers:
|
||||
name: influxdb
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/influxdb
|
||||
version: 6.6.6
|
||||
version: 6.6.7
|
||||
|
||||
@@ -24,16 +24,17 @@ data:
|
||||
|
||||
DATE="$(date +%Y%m%d_%H%M%S)"
|
||||
|
||||
|
||||
host="{{ include "common.names.fullname" . }}.{{ include "common.names.namespace" . }}.svc"
|
||||
|
||||
export INFLUX_TOKEN={{ ternary "cat $(INFLUXDB_ADMIN_USER_TOKEN_FILE)" "${INFLUXDB_ADMIN_USER_TOKEN}" .Values.auth.usePasswordFiles }}
|
||||
|
||||
get_orgs() {
|
||||
INFLUX_TOKEN="${INFLUXDB_ADMIN_USER_TOKEN}" influx org list --host "http://${host}:{{ coalesce .Values.influxdb.service.ports.http .Values.influxdb.service.port }}" 2> /dev/null | grep -v 'ID' | awk -F '\t' 'BEGIN{ORS=" "} {print $2}'
|
||||
influx org list --host "http://${host}:{{ coalesce .Values.influxdb.service.ports.http .Values.influxdb.service.port }}" 2> /dev/null | grep -v 'ID' | awk -F '\t' 'BEGIN{ORS=" "} {print $2}'
|
||||
}
|
||||
|
||||
get_databases() {
|
||||
local org_name="${1:-}"
|
||||
INFLUX_TOKEN="${INFLUXDB_ADMIN_USER_TOKEN}" influx bucket list --host "http://${host}:{{ coalesce .Values.influxdb.service.ports.http .Values.influxdb.service.port }}" --org "${org_name}" 2> /dev/null | grep -v 'ID' | awk -F '\t' 'BEGIN{ORS=" "} {print $2}'
|
||||
influx bucket list --host "http://${host}:{{ coalesce .Values.influxdb.service.ports.http .Values.influxdb.service.port }}" --org "${org_name}" 2> /dev/null | grep -v 'ID' | awk -F '\t' 'BEGIN{ORS=" "} {print $2}'
|
||||
}
|
||||
|
||||
for ORG in $(get_orgs); do
|
||||
@@ -43,7 +44,7 @@ data:
|
||||
echo "backuping ${BUCKET} bucket to ${backup_dir}"
|
||||
mkdir -p "${backup_dir}"
|
||||
|
||||
INFLUX_TOKEN="${INFLUXDB_ADMIN_USER_TOKEN}" influx backup --host "http://${host}:{{ coalesce .Values.influxdb.service.ports.http .Values.influxdb.service.port }}" --bucket "${BUCKET}" "${backup_dir}/${DATE}"
|
||||
influx backup --host "http://${host}:{{ coalesce .Values.influxdb.service.ports.http .Values.influxdb.service.port }}" --bucket "${BUCKET}" "${backup_dir}/${DATE}"
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user