update
This commit is contained in:
@@ -28,7 +28,7 @@ MYSQLCFG=/etc/mysql/my.cnf
|
||||
BACKUPSTOKEEP=3
|
||||
BACKUP_DAEMON=/usr/bin/mariabackup
|
||||
# BACKUP_MOUNTED=true
|
||||
BACKUP_TYPE=both # (xtrabackup, mysqldump, or both)
|
||||
BACKUP_TYPE=both # (xtrabackup, mariadb-dump, or both)
|
||||
" > /opt/idssys/mysqlbu/settings.conf
|
||||
|
||||
if [ ! -d "/opt/idssys/defaults" ]; then
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
action="$1"
|
||||
FOLDER='/opt/idssys/mysqlbu'
|
||||
VERS='2.9-06082025'
|
||||
VERS='2.10-06082025'
|
||||
|
||||
source /opt/idssys/defaults/colors.inc
|
||||
source /opt/idssys/defaults/default.inc
|
||||
@@ -302,7 +302,7 @@ case $1 in
|
||||
DATABASES=$(/usr/bin/mysql -u ${MYSQLUSER} --password="${MYSQLPASS}" -e "SHOW DATABASES;" | tr -d "| " | grep -v Database)
|
||||
for db in $DATABASES; do
|
||||
FILE="${DEST_DIR}/$db.sql.gz"
|
||||
/usr/bin/mysqldump --single-transaction --routines --quick -u ${MYSQLUSER} --password="${MYSQLPASS}" -B $db | gzip > "$FILE"
|
||||
/usr/bin/mariadb-dump --single-transaction --routines --quick -u ${MYSQLUSER} --password="${MYSQLPASS}" -B $db | gzip > "$FILE"
|
||||
done
|
||||
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user