0

How to restore a single user account backup in zimbra

Hi , I face this issue recently and i am still unable to fix the Problem.

All of sudden two mail accounts of zimbra got disappeared and unable to create a new account with a same id. However i have a Backup of the particular account Now i need to restore a backup to a new account created, how it can be done?

Zimbra Add a comment
isaac
asked Mar 13 2019
edited Mar 13 2019

Answer

0

First create a emailid which is little different from previous ( alter one character, can be changed later )
Go to the backup directory and change the name of the emailid from the backup which needs to be restored ( new mail id which you just craeted )
Now create a file named email.txt and enter a emailid which you just created
Its time to restore a backup now , in order to perform that use the Following command

for i in cat /path/email.txt; do zmmailbox -z -m $i postRestURL "/?fmt=tgz&resolve=skip" /path/zimbra-bkp/$i.tar.gz ; echo "$i -- finished "; done

You are done the email has been restored to newly craeted mail account

Next thing you have to do is rename a Newly created mail account to the previous one.

Add a comment
linuxhelp
asked Mar 13 2019
edited Apr 03 2019
Post your Answer