Skip to content
Snippets Groups Projects
Commit ddc45772 authored by Daniel's avatar Daniel
Browse files

MAINT: Formatting.

parent f5b06149
No related branches found
No related tags found
No related merge requests found
...@@ -72,13 +72,14 @@ function backup() { ...@@ -72,13 +72,14 @@ function backup() {
NARG_FILE="$2" NARG_FILE="$2"
shift 2 shift 2
echo $MYSQLDUMP_CMD echo $MYSQLDUMP_CMD
# parameters: connection, database, outfile # parameters: connection, database, outfile
if [ -e "$NARG_FILE" ]; then if [ -e "$NARG_FILE" ]; then
failure "dumpfile already exists." failure "dumpfile already exists."
fi fi
echo "Dumping database $NARG_NAME to $NARG_FILE ... " echo "Dumping database $NARG_NAME to $NARG_FILE ... "
$CMD_MYSQL_DUMP $MYSQL_CONNECTION_NO_DB $* --opt --default-character-set=utf8 --routines $NARG_NAME > $NARG_FILE $CMD_MYSQL_DUMP $MYSQL_CONNECTION_NO_DB $* --opt --default-character-set=utf8 --routines \
success $NARG_NAME > $NARG_FILE
success
} }
# Prints a YAML failure message, if YAML is true. # Prints a YAML failure message, if YAML is true.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment