From 2e8747ee4a262185738a43cc483b2a646df94e65 Mon Sep 17 00:00:00 2001 From: Patrick Ditzel <patrick@central-computer.de> Date: Thu, 19 Apr 2018 14:27:11 +0000 Subject: [PATCH] Started work on mongodb backupscript --- dbb-modules/mariadb | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dbb-modules/mariadb b/dbb-modules/mariadb index b3c58c9..2c5a4ca 100644 --- a/dbb-modules/mariadb +++ b/dbb-modules/mariadb @@ -2,11 +2,10 @@ # MariaBD/MySQL remote # -# The Information what MySQL/MariaDB - databases should be backuped are defined in ~/.my.cnf +# The Information what MySQL/MariaDB - databases should be backuped are defined in ~/.my.cnf-dbname # -# note:for MARIADB in $(ls .my.cnf-* | cut -d "-" -f2); do mysqldump --defaults-file="~/.my.cnf-$MARIADB" --skip-dump-date $MARIADB > $TMP_DIR/$(cat ~/.my.cnf-$DATABASE | grep host | cut -d "=" -f2); done -# note: for each MySQL- or MariaDB-Database create a seperate configfile .my.cnf-dbname ind the ~ of the backupuser: -# note: replase the suffixe -dbname with the name of the database. The seperating "-" can also be a ".". +# note: for each MySQL- or MariaDB-Database create a seperate configfile .my.cnf-dbname in the ~ of the backupuser: +# note: replace the suffixe -dbname with the name of the database. The seperating "-" can also be a ".". # [mysqldump] # host=HOSTNAME # user=DBUSERNAME -- Gitblit v1.10.0