fixing the parameter extraction and mysqldump process
This commit is contained in:
parent
c1d8ddb765
commit
ef6958a3b9
1 changed files with 8 additions and 8 deletions
|
@ -23,9 +23,9 @@ BU_FROOT_MONTHLY=monthly
|
||||||
BU_FROOT_YEARLY=yearly
|
BU_FROOT_YEARLY=yearly
|
||||||
#
|
#
|
||||||
# this can be overridden at invocation
|
# this can be overridden at invocation
|
||||||
BU_CONF=default-docker-compose.conf
|
BU_CONF=default-mariadb-docker-compose.conf
|
||||||
# # output for debugging...
|
# # output for debugging...
|
||||||
VERBOSE=0
|
VERBOSE=1
|
||||||
#
|
#
|
||||||
# Stuff that should be universal for this install...
|
# Stuff that should be universal for this install...
|
||||||
# where we can find this app...
|
# where we can find this app...
|
||||||
|
@ -135,9 +135,9 @@ delete_old() {
|
||||||
#
|
#
|
||||||
do_backup() {
|
do_backup() {
|
||||||
FILE=$1
|
FILE=$1
|
||||||
DATABASE="$(get_value DC_DB_NAME_VAR $DC_FILE)"
|
DATABASE="$(get_value $DC_DB_NAME_VAR $DC_FILE)"
|
||||||
USER="$(get_value DC_DB_USER_VAR $DC_FILE)"
|
USER="$(get_value $DC_DB_USER_VAR $DC_FILE)"
|
||||||
PASSWORD="$(get_value DC_DB_PASSWORD_VAR $DC_FILE)"
|
PASSWORD="$(get_value $DC_DB_PASSWORD_VAR $DC_FILE)"
|
||||||
verbose "debug - DB details: USER = $USER, PASSWORD = $PASSWORD, DB = $DATABASE"
|
verbose "debug - DB details: USER = $USER, PASSWORD = $PASSWORD, DB = $DATABASE"
|
||||||
VER=`$DC exec $DC_CONTAINER mysql --version`
|
VER=`$DC exec $DC_CONTAINER mysql --version`
|
||||||
verbose "MariaDB version $VER - echoing to backup: $FILE"
|
verbose "MariaDB version $VER - echoing to backup: $FILE"
|
||||||
|
@ -191,13 +191,13 @@ done
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# create the blank email report
|
# create the blank email report
|
||||||
create_tmp_email
|
#create_tmp_email
|
||||||
#
|
#
|
||||||
if test -f $BU_CONF ; then
|
if test -f $BU_CONF ; then
|
||||||
verbose "Reading default in $BU_CONF"
|
verbose "Reading default in $BU_CONF"
|
||||||
source $BU_CONF
|
source $BU_CONF
|
||||||
else
|
else
|
||||||
error "Couldn't find or read $BU_CONF"
|
message "Couldn't find or read $BU_CONF"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
@ -236,5 +236,5 @@ cd $OLD_DIR
|
||||||
#
|
#
|
||||||
# sent resulting email report
|
# sent resulting email report
|
||||||
#
|
#
|
||||||
send_email_report
|
#send_email_report
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue