How can I restore specific email from filesystem backup

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
simred
Advanced member
Advanced member
Posts: 55
Joined: Wed Jun 28, 2017 9:40 am

How can I restore specific email from filesystem backup

Postby simred » Tue Oct 31, 2017 9:42 am

Hi,
we use Zimbra OSE 8.7.11. It happened a user erroneously deleted some mails. Now it asked if it's possible to restore the deleted mails (from our backup).
We have the store filesystem backup and the mysql db dumps at the requested date.
The question is: is it possible to restore specific emails from the above backup? Can you please enlight me about the restore process?
From Zimbra Wiki (https://wiki.zimbra.com/wiki/Zmmailbox) I found only:
echo addMessage /INBOX /path/to/Maildir/cur | /opt/zimbra/bin/zmmailbox -z -m foo@bar.com
Does this solves my issue? Does "/path/to/Maildir/cur" represents the path to the specific email to be added to inbox?

Any help will be greatly appreciated.

Tnx & br


User avatar
gabrieles
Advanced member
Advanced member
Posts: 141
Joined: Tue Feb 14, 2017 9:40 am

Re: How can I restore specific email from filesystem backup

Postby gabrieles » Thu Nov 02, 2017 11:06 am

I think that will work if you have a Maildir structure active.
If you have the lost message avalilable somewhere in a backup:
/opt/zimbra/bin/zmmailbox -z -m username@domain.com addMessage /INBOX /path/to/the/message.msg
will add (and generate metadata and index and all the stuff) the msg in the /Inbox folder of the user
simred
Advanced member
Advanced member
Posts: 55
Joined: Wed Jun 28, 2017 9:40 am

Re: How can I restore specific email from filesystem backup

Postby simred » Thu Nov 02, 2017 1:59 pm

Thank you very much Gabrieles.

Best regards.

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 13 guests