mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 21:33:28 +01:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
49356629fe | ||
|
|
b938c8a761 | ||
|
|
5807ba07e3 | ||
|
|
96f3120e35 | ||
|
|
af5c6198ce |
@@ -1,3 +1,11 @@
|
||||
## 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
|
||||
|
||||
## 1.9 - 2018-11-03 - <dave at tiredofit dot ca>
|
||||
|
||||
* Switch from OpenSSL to LibreSSL
|
||||
|
||||
4
install/etc/cont-finish.d/10-db-backup
Normal file
4
install/etc/cont-finish.d/10-db-backup
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
pkill bash
|
||||
|
||||
@@ -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} ${TMPDIR}/${TARGET}
|
||||
influxd backup -database $DB -host ${DBHOST}:${DBPORT} ${TMPDIR}/${TARGET}
|
||||
generate_md5
|
||||
compression
|
||||
move_backup
|
||||
@@ -298,4 +298,4 @@ echo '** [db-backup] Initialized at at '$(date)
|
||||
fi
|
||||
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user