From ed83575decde9b12a951d1b36612d5ca6afaa1de Mon Sep 17 00:00:00 2001 From: root Date: Thu, 9 Jun 2022 05:59:00 +0000 Subject: [PATCH] changed the default backup file root name to be based on the actual database name defined for the container --- mariadbbackup-docker-compose | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mariadbbackup-docker-compose b/mariadbbackup-docker-compose index 4deaa07..15eb7be 100755 --- a/mariadbbackup-docker-compose +++ b/mariadbbackup-docker-compose @@ -15,7 +15,7 @@ BU_TO_KEEP_WEEKLY=4 BU_TO_KEEP_MONTHLY=12 BU_TO_KEEP_YEARLY=7 # -BU_FROOT=alldbs +#BU_FROOT=alldbs BU_FROOT_HOURLY=hourly BU_FROOT_DAILY=daily BU_FROOT_WEEKLY=weekly @@ -211,6 +211,9 @@ cd $DC_DIR # # a timestamp for logging purposes STAMP=`date '+%Y-%m-%d_%H-%M-%S'` +# +# set the root based on the name of the database... +BU_FROOT="$(get_value $DC_DB_NAME_VAR $DC_FILE)" # # generate the filename INC="BU_FROOT_$TASK"