From e684dc31d6ec89f2eee7167d82417c00f10a27aa Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 30 Jun 2012 11:45:50 -0300 Subject: Restore roundcube database --- share/hydractl/backup-restore-mail | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/hydractl/backup-restore-mail b/share/hydractl/backup-restore-mail index a515584..30cc42f 100755 --- a/share/hydractl/backup-restore-mail +++ b/share/hydractl/backup-restore-mail @@ -25,6 +25,7 @@ DATE="`date +%Y%m%d`" HOST="$1" SERVICE="mail" SERVICE_DIR="/var/mail/virtual" +DATABASE_DIR="/var/lib/dbconfig-common/sqlite/roundcube" SERVICE_USER="vmail" SERVICE_GROUP="vmail" @@ -44,6 +45,9 @@ for folder in `ls $RESTOREDIR/$SERVICE_DIR`; do fi done +# Restore database. +rsync -av $RESTOREDIR/$DATABASE_DIR/ $DATABASE_DIR/ + # Fix permissions. chown -R $SERVICE_USER.$SERVICE_GROUP $SERVICE_DIR -- cgit v1.2.3