[Backup] Create nested directory for backup
This commit is contained in:
commit
b24fc6ad8c
@ -36,7 +36,7 @@ if [[ ! -d ${BACKUP_LOCATION} ]]; then
|
|||||||
if [[ ! ${CREATE_BACKUP_LOCATION,,} =~ ^(yes|y)$ ]]; then
|
if [[ ! ${CREATE_BACKUP_LOCATION,,} =~ ^(yes|y)$ ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
mkdir ${BACKUP_LOCATION}
|
mkdir -p ${BACKUP_LOCATION}
|
||||||
chmod 755 ${BACKUP_LOCATION}
|
chmod 755 ${BACKUP_LOCATION}
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user