Merge pull request #810 from occelebi/backupdir
Ensure backup directory exist
This commit is contained in:
commit
d58a100fa6
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
|
||||
echo -e "[client]\npassword=$PASS\nuser=$USER" > $TMPFILE
|
||||
|
||||
# Ensure backup directory exist.
|
||||
mkdir -p $DIR
|
||||
|
||||
PREFIX=mysql_backup_
|
||||
<% if @ignore_events %>
|
||||
ADDITIONAL_OPTIONS="--ignore-table=mysql.event"
|
||||
|
|
Loading…
Reference in a new issue