diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-05-05 03:55:39 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-05-05 03:55:39 +0200 |
commit | c10582baf37516d297f19b65fb5888a76c36cfea (patch) | |
tree | e07414e710f6bef8000c8175e3b0f7d6d239bbb2 | |
parent | ebd5ac49380e0be7960f88b46f5a90b668bf8e09 (diff) | |
download | backup-c10582baf37516d297f19b65fb5888a76c36cfea.tar.gz backup-c10582baf37516d297f19b65fb5888a76c36cfea.tar.xz backup-c10582baf37516d297f19b65fb5888a76c36cfea.zip |
bugfix: create tmpdir befor trying to create a directory in it
-rwxr-xr-x | mysql/mysql_backup.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql/mysql_backup.sh b/mysql/mysql_backup.sh index 3960847..1e25518 100755 --- a/mysql/mysql_backup.sh +++ b/mysql/mysql_backup.sh @@ -57,6 +57,7 @@ echo "Started backup of mysql databases ($(date +%c)):" | log echo | log # create temporary dir +mkdir -p ${TMP_DIRECTORY} TMP_DIR=$(mktemp -d --tmpdir=${TMP_DIRECTORY}) pushd ${TMP_DIR} >/dev/null 2>&1 |