+
+ # Global variables
+ mysql_title="MySQL action wizard"
+
+ # backup the host system or a Vserver?
+ choose_host_or_one_vserver "$mysql_title"
+ [ $? = 0 ] || return 1
+ if [ $host_or_vservers == vservers ]
+ then
+ do_mysql_vserver
+ [ $? = 0 ] || return 1
+ fi
+
+ # backupdir
+ if [ $host_or_vservers == vservers ]
+ then
+ inputBox "$mysql_title" "Directory where to store the backups:`echo \"\n(Relative to chosen vserver's root directory)\"`" "/var/backups/mysql"
+ else
+ inputBox "$mysql_title" "Directory where to store the backups" "/var/backups/mysql"
+ fi
+ [ $? = 1 ] && return
+ mysql_backupdir="backupdir = $REPLY"
+
+ # databases
+ booleanBox "$mysql_title" "Do you want to backup all of the databases? `echo \"\n\nIf not, you'll be offered to choose individual databases to backup.\"`"
+ if [ $? = 0 ]; then
+ mysql_databases="databases = all"
+ else
+ do_mysql_databases
+ [ $? = 0 ] || return 1
+ fi
+