ensure backup directory exists

this is because the filename can now contain subpaths
This commit is contained in:
Girish Ramakrishnan
2017-01-09 16:06:25 -08:00
parent 26ed331f8e
commit 7b1a6e605b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ if [[ "$1" == "s3" ]]; then
elif [[ "$1" == "filesystem" ]]; then
echo "Storing backup to ${backup_folder}/${backup_fileName}"
mkdir -p "${backup_folder}"
mkdir -p $(dirname "${backup_folder}/${backup_fileName}")
tar -czf - -C "${box_snapshot_dir}" . | openssl aes-256-cbc -e -pass "pass:${password}" > "${backup_folder}/${backup_fileName}"
fi