Skip to content

Commit 4866a53

Browse files
add config options to choose mariadb binaries alternatively
1 parent 9d37c90 commit 4866a53

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

automysqlbackup

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -553,28 +553,28 @@ dbstatus() {
553553
if (( $CONFIG_dryrun )); then
554554
case "${CONFIG_mysql_dump_compression}" in
555555
'gzip')
556-
echo "dry-running: mysqlshow ${authentication} ${opt_dbstatus[@]} | gzip_compression > ${1}${suffix}";
556+
echo "dry-running: ${CONFIG_mysql_show} ${authentication} ${opt_dbstatus[@]} | gzip_compression > ${1}${suffix}";
557557
;;
558558
'bzip2')
559-
echo "dry-running: mysqlshow ${authentication} ${opt_dbstatus[@]} | bzip2_compression > ${1}${suffix}";
559+
echo "dry-running: ${CONFIG_mysql_show} ${authentication} ${opt_dbstatus[@]} | bzip2_compression > ${1}${suffix}";
560560
;;
561561
*)
562-
echo "dry-running: mysqlshow ${authentication} ${opt_dbstatus[@]} > ${1}${suffix}";
562+
echo "dry-running: ${CONFIG_mysql_show} ${authentication} ${opt_dbstatus[@]} > ${1}${suffix}";
563563
;;
564564
esac
565565
return 0;
566566
else
567567
case "${CONFIG_mysql_dump_compression}" in
568568
'gzip')
569-
mysqlshow ${authentication} "${opt_dbstatus[@]}" | gzip_compression > "${1}${suffix}";
569+
${CONFIG_mysql_show} ${authentication} "${opt_dbstatus[@]}" | gzip_compression > "${1}${suffix}";
570570
return $?
571571
;;
572572
'bzip2')
573-
mysqlshow ${authentication} "${opt_dbstatus[@]}" | bzip2_compression > "${1}${suffix}";
573+
${CONFIG_mysql_show} ${authentication} "${opt_dbstatus[@]}" | bzip2_compression > "${1}${suffix}";
574574
return $?
575575
;;
576576
*)
577-
mysqlshow ${authentication} "${opt_dbstatus[@]}" > "${1}${suffix}";
577+
${CONFIG_mysql_show} ${authentication} "${opt_dbstatus[@]}" > "${1}${suffix}";
578578
return $?
579579
;;
580580
esac

automysqlbackup.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#CONFIG_mysql_dump='/usr/bin/mysqldump'
2222
#CONFIG_mysql_dump='/usr/bin/mariadb-dump'
2323

24+
#CONFIG_mysql_show='/usr/bin/mysqlshow'
25+
#CONFIG_mysql_show='/usr/bin/mariadb-show'
26+
2427
# mysql8 or newer? or not?
2528
#CONFIG_mysql8='yes'
2629

0 commit comments

Comments
 (0)