Ensure backup directory exist
This commit is contained in:
parent
9d611106bb
commit
1bd7b7be83
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@ ROTATE=<%= [ Integer(@backuprotate) - 1, 0 ].max %>
|
||||||
TMPFILE=`mktemp /tmp/backup.XXXXXX` || exit 1
|
TMPFILE=`mktemp /tmp/backup.XXXXXX` || exit 1
|
||||||
echo -e "[client]\npassword=$PASS\nuser=$USER" > $TMPFILE
|
echo -e "[client]\npassword=$PASS\nuser=$USER" > $TMPFILE
|
||||||
|
|
||||||
|
# Ensure backup directory exist.
|
||||||
|
mkdir -p $DIR
|
||||||
|
|
||||||
PREFIX=mysql_backup_
|
PREFIX=mysql_backup_
|
||||||
<% if @ignore_events %>
|
<% if @ignore_events %>
|
||||||
ADDITIONAL_OPTIONS="--ignore-table=mysql.event"
|
ADDITIONAL_OPTIONS="--ignore-table=mysql.event"
|
||||||
|
|
Loading…
Reference in a new issue