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
@@ -98,7 +98,7 @@ if [[ "$1" == "s3" ]]; then
cat "${error_log}" && rm "${error_log}"
done
elif [[ "$1" == "filesystem" ]]; then
mkdir -p "${backup_folder}"
mkdir -p $(dirname "${backup_folder}/${backup_config_fileName}")
echo "Storing backup config to ${backup_folder}/${backup_config_fileName}"
cat "${app_data_snapshot}/config.json" > "${backup_folder}/${backup_config_fileName}"