aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/backup-restore-mail
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl/backup-restore-mail')
-rwxr-xr-xshare/hydractl/backup-restore-mail1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/hydractl/backup-restore-mail b/share/hydractl/backup-restore-mail
index 30cc42f..371cd3a 100755
--- a/share/hydractl/backup-restore-mail
+++ b/share/hydractl/backup-restore-mail
@@ -46,6 +46,7 @@ for folder in `ls $RESTOREDIR/$SERVICE_DIR`; do
done
# Restore database.
+mkdir -p $DATABASE_DIR
rsync -av $RESTOREDIR/$DATABASE_DIR/ $DATABASE_DIR/
# Fix permissions.