mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 21:33:28 +01:00
Merge pull request #52 from bambi73/master
#51 Fix backup of multiple InfluxDB databases failure
This commit is contained in:
@@ -140,6 +140,7 @@ backup_influx() {
|
|||||||
influx_compression="-portable"
|
influx_compression="-portable"
|
||||||
fi
|
fi
|
||||||
for DB in $DB_NAME; do
|
for DB in $DB_NAME; do
|
||||||
|
target=influx_${DB}_${dbhost}_${now}
|
||||||
influxd backup ${influx_compression} -database $DB -host ${dbhost}:${dbport} ${tmpdir}/${target}
|
influxd backup ${influx_compression} -database $DB -host ${dbhost}:${dbport} ${tmpdir}/${target}
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
generate_md5
|
generate_md5
|
||||||
|
|||||||
Reference in New Issue
Block a user