create backup dir

This commit is contained in:
Daniel Hansson 2018-08-06 11:20:18 +02:00 committed by GitHub
parent 4a3d15ef7b
commit f3fadd9e4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,6 +143,9 @@ sleep 10
# Stop Apache2
check_command service apache2 stop
# Create backup dir (/var/NCBACKUP/)
mkdir -p "$BACKUP"
# Backup PostgreSQL
if which psql > /dev/null
then