https://bugs.contribs.org/show_bug.cgi?id=10655

--- Comment #8 from John Crisp <[email protected]> ---
Terry,

can you try this quick patch to /usr/local/bin/automysqlbackup

--- automysqlbackup.old 2018-11-28 14:05:41.036896175 +0100
+++ automysqlbackup     2018-11-28 14:35:27.082480763 +0100
@@ -24,6 +24,12 @@
 ENCRYPT=$(/sbin/e-smith/config getprop automysqlbackup Encrypt)
 DBENCRYPT_PASSWORD=$(/sbin/e-smith/config getprop automysqlbackup
Dbencrypt_password)
 BACKUP_LOCAL_FILES=$(/sbin/e-smith/config getprop automysqlbackup
Backup_local_files)
+
+if [ -z "$BACKUPDIR" ]; then
+    BACKUPDIR="/root/backup/db";
+fi
+
+
 ###
 shopt -s extglob


I'm not 100% sure but I think that fixes a missing/empty Backupdir setting.

It's a bit problematic as there were a number of assumptions made in the
scripts, the major one being that it was never considered about other DB
types/versions, and I could run down a rabbit hole trying to fix them all.

If the above fixes an empty DB setting we are home and dry.

(there is probably an issue with the error reporting with an empty setting from
the script but not worth trying to debug/fix it right now - that's the file
descriptor errors)

To test:

Patch the automysqlbackup file, remove /root/backup/*

Then run:

/sbin/e-smith/runmysqlbackup /etc/automysqlbackup/mysql55.conf

Then see if you have a /root/backup/db_mysql55 dir (If it creates that one then
it should do the rest)

If it works I'll patch the automysql rpm as well.

Thanks

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to