aboutsummaryrefslogtreecommitdiff
path: root/lib/beam/mysql.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/beam/mysql.sh')
-rwxr-xr-xlib/beam/mysql.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/beam/mysql.sh b/lib/beam/mysql.sh
index c172f44..4ce3a88 100755
--- a/lib/beam/mysql.sh
+++ b/lib/beam/mysql.sh
@@ -15,6 +15,13 @@
# You should have received a copy of the GNU General Public License
# along with BEAM. If not, see <http://www.gnu.org/licenses/>.
+# Configuration keywords:
+#
+# item_type=mysql [mandatory]
+# item_database=STRING [optional]
+# item_defaults_file=STRING [optional]
+#
+
# mysql_check item
mysql_check() {
return 0
@@ -36,8 +43,12 @@ mysql_list() {
mysql_backup() {
local database
- logit "backing up MySQL database $1"
eval database=\$${1}_database
+ if [ -z "$database" ]; then
+ logit "backing up all MySQL databases"
+ else
+ logit "backing up MySQL database $database"
+ fi
cmd="mysqldump"
eval defaults_file=\$${1}_defaults_file
if [ -n "$defaults_file" ]; then

Return to:

Send suggestions and report system problems to the System administrator.