Results 1 to 6 of 6

Thread: How to restore emails for an account from backup

  1. #1
    valentinmitoiu is offline Junior Member
    Join Date
    Nov 2011
    Posts
    5
    Rep Power
    3

    Question How to restore emails for an account from backup

    Hello,

    I have a little problem with an account...a user deleted his all his emails by mistake and now he wants them back.

    I have copied them from the backup in /opt/zimbra/store/0/id/ but they are now showing in his email.

    What do I have to do so they show up in his email account ?

    Thank you

  2. #2
    LaFong is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Denver, CO
    Posts
    221
    Rep Power
    6

    Default

    Quote Originally Posted by valentinmitoiu View Post
    Hello,

    I have a little problem with an account...a user deleted his all his emails by mistake and now he wants them back.

    I have copied them from the backup in /opt/zimbra/store/0/id/ but they are now showing in his email.

    What do I have to do so they show up in his email account ?
    The emails will not show up if you do not restore or recreate the database references to them. You can add his emails back, or restore his entire account. You, and he, will need to do some work. This kind of thing is much easier if you also do MySQL and LDAP backups, or have the $ NE version.

    If you have the Dumpster feature enabled, he might be able to recover recent emails.

    [SOLVED] Yet Another Backup Script for Community Version

    [SOLVED] Yet Another Backup Script for Community Version

  3. #3
    valentinmitoiu is offline Junior Member
    Join Date
    Nov 2011
    Posts
    5
    Rep Power
    3

    Default

    The server is backed-up using zimbraColdBackup.pl, could I use zmlmtpinject to inject the messages into that mailbox ?

  4. #4
    LaFong is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Denver, CO
    Posts
    221
    Rep Power
    6

    Default

    Quote Originally Posted by valentinmitoiu View Post
    The server is backed-up using zimbraColdBackup.pl, could I use zmlmtpinject to inject the messages into that mailbox ?
    Yes, except that none of the message dates will be right. They will all default to the date you inject them. In the restore folder post above, I have a script to copy the Date header to "X-Zimbra-Received", so the dates will be right when you zmlmtpinject.

    Another approach, for someone with lots of mail and folders, is to create a temp Zimbra server on another machine or VM, restore to it from your cold backup, export the user's data within the GUI to a tgz file, then import that tgz file into your real server, perhaps to a temp user. Share the temp user's folders, then the person can just copy them to their account.

  5. #5
    valentinmitoiu is offline Junior Member
    Join Date
    Nov 2011
    Posts
    5
    Rep Power
    3

    Default

    Yep, I used the script but the dates haven't been added correctly to the messages. Everything else is ok. I will try to adopt a new backup method instead of zimbraColdBackup to avoid things like this in the future.

    Thank you once again for the help.

  6. #6
    LaFong is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Denver, CO
    Posts
    221
    Rep Power
    6

    Default

    The script I referenced does work, if used as shown. It has been tested many times. You can check the individual .msg files for X-Zimbra-Received in the header. The other script may work as well, but it, like mine, does not inject messages. That is done by separate commands.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. backup and restore emails on a zimbra open source client
    By D2000 in forum General Questions
    Replies: 4
    Last Post: 03-05-2012, 04:10 AM
  2. Recovery Account without backup
    By isacap18 in forum Administrators
    Replies: 23
    Last Post: 10-21-2011, 01:47 PM
  3. Replies: 3
    Last Post: 12-24-2010, 12:54 PM
  4. Restore single account failed from full backup
    By fmodola in forum Administrators
    Replies: 4
    Last Post: 06-20-2007, 05:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •