From ef6958a3b9cf6b6cb8cc8b445d0e60c498056897 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 9 Jun 2022 05:53:37 +0000 Subject: [PATCH] fixing the parameter extraction and mysqldump process --- mariadbbackup-docker-compose | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mariadbbackup-docker-compose b/mariadbbackup-docker-compose index 6e2d657..4deaa07 100755 --- a/mariadbbackup-docker-compose +++ b/mariadbbackup-docker-compose @@ -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