mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-22 05:33:53 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
49356629fe | ||
|
|
b938c8a761 | ||
|
|
5807ba07e3 | ||
|
|
96f3120e35 |
@@ -1,3 +1,7 @@
|
||||
## 1.11 - 2018-11-19 - <skylord123 at github>
|
||||
|
||||
* Fix for Urnary Operator Error
|
||||
|
||||
## 1.10 - 2018-11-19 - <dave at tiredofit dot ca>
|
||||
|
||||
* Fix for InfluxDB for backing up and supporting DB_PORT variable - Thanks skylord123@github
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
date >/dev/null
|
||||
|
||||
if [ $1 != "NOW" ]; then
|
||||
if [ "$1" != "NOW" ]; then
|
||||
sleep 10
|
||||
fi
|
||||
|
||||
@@ -37,7 +37,7 @@ MD5=${MD5:-TRUE}
|
||||
SPLIT_DB=${SPLIT_DB:-FALSE}
|
||||
TMPDIR=/tmp/backups
|
||||
|
||||
if [ $1 = "NOW" ]; then
|
||||
if [ "$1" = "NOW" ]; then
|
||||
DB_DUMP_BEGIN=+0
|
||||
MANUAL=TRUE
|
||||
fi
|
||||
@@ -126,7 +126,7 @@ function backup_mysql() {
|
||||
|
||||
function backup_influx() {
|
||||
for DB in $DB_NAME; do
|
||||
influxd backup -database $DB -host ${DBHOST} -p ${DBPORT} ${TMPDIR}/${TARGET}
|
||||
influxd backup -database $DB -host ${DBHOST}:${DBPORT} ${TMPDIR}/${TARGET}
|
||||
generate_md5
|
||||
compression
|
||||
move_backup
|
||||
|
||||
Reference in New Issue
Block a user