summaryrefslogtreecommitdiff
path: root/share/hydractl/backup-restore-mail
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-05-02 13:55:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-05-02 13:55:55 -0300
commit09081682e45402b776aa9188cb2829d03ecdd157 (patch)
treeba50fd821e95cba1d4eaf64adaba289c9c27e90b /share/hydractl/backup-restore-mail
parent176efc9b17199d19aad129a651c1ef0cd3afa3c0 (diff)
downloadhydra-09081682e45402b776aa9188cb2829d03ecdd157.tar.gz
hydra-09081682e45402b776aa9188cb2829d03ecdd157.tar.bz2
Restoration fixes
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.