Commit ef6958a3 authored by root's avatar root
Browse files

fixing the parameter extraction and mysqldump process

parent c1d8ddb7
......@@ -23,9 +23,9 @@ BU_FROOT_MONTHLY=monthly
BU_FROOT_YEARLY=yearly
#
# this can be overridden at invocation
BU_CONF=default-docker-compose.conf
BU_CONF=default-mariadb-docker-compose.conf
# # output for debugging...
VERBOSE=0
VERBOSE=1
#
# Stuff that should be universal for this install...
# where we can find this app...
......@@ -135,9 +135,9 @@ delete_old() {
#
do_backup() {
FILE=$1
DATABASE="$(get_value DC_DB_NAME_VAR $DC_FILE)"
USER="$(get_value DC_DB_USER_VAR $DC_FILE)"
PASSWORD="$(get_value DC_DB_PASSWORD_VAR $DC_FILE)"
DATABASE="$(get_value $DC_DB_NAME_VAR $DC_FILE)"
USER="$(get_value $DC_DB_USER_VAR $DC_FILE)"
PASSWORD="$(get_value $DC_DB_PASSWORD_VAR $DC_FILE)"
verbose "debug - DB details: USER = $USER, PASSWORD = $PASSWORD, DB = $DATABASE"
VER=`$DC exec $DC_CONTAINER mysql --version`
verbose "MariaDB version $VER - echoing to backup: $FILE"
......@@ -191,13 +191,13 @@ done
#
#
# create the blank email report
create_tmp_email
#create_tmp_email
#
if test -f $BU_CONF ; then
verbose "Reading default in $BU_CONF"
source $BU_CONF
else
error "Couldn't find or read $BU_CONF"
message "Couldn't find or read $BU_CONF"
exit 1
fi
#
......@@ -236,5 +236,5 @@ cd $OLD_DIR
#
# sent resulting email report
#
send_email_report
#send_email_report
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment