Results 1 to 6 of 6

Thread: [SOLVED] Restore from backups seems to just duplicate the current mailbox

  1. #1
    ZZZ
    ZZZ is offline Junior Member
    Join Date
    Jul 2010
    Posts
    6
    Rep Power
    5

    Default [SOLVED] Restore from backups seems to just duplicate the current mailbox

    One of our Zimbra users accidentally deleted his emails between 2010-06-18 and 2010-06-22. The deletion took place on 2010-06-23.

    I have backups as follows:

    drwxr-x--- 6 zimbra zimbra 48 Jun 19 05:01 full-20100618.220013.785
    drwxr-x--- 6 zimbra zimbra 48 Jun 21 01:01 incr-20100620.220016.331
    drwxr-x--- 6 zimbra zimbra 48 Jun 22 01:01 incr-20100621.220014.294
    drwxr-x--- 6 zimbra zimbra 48 Jun 23 01:00 incr-20100622.220015.804
    drwxr-x--- 6 zimbra zimbra 48 Jun 24 01:00 incr-20100623.220014.207

    However, if I use any of these to recover, the deleted emails are still missing AND the restored mailbox has newer emails than the timestamp. It is as if Zimbra just copies the current mailbox without restoring it from the backups. I use the restore tool (restore to another mailbox with restored_ prefix) from the administrator GUI.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,485
    Rep Power
    56

    Default

    Quote Originally Posted by ZZZ View Post
    One of our Zimbra users accidentally deleted his emails between 2010-06-18 and 2010-06-22. The deletion took place on 2010-06-23.
    I don't really understand that statement, did the email get deleted between the 18th-22nd June or did they get deleted on the 23rd June? Do you mean that on the 23rd June he deleted all his email from 18th-22rd June? What happens if you use the Full Backup from the 19th June and the incremental from the 21st-23rd June, does the restored mailbox contain the email? Did you reindex the restored mailbox after it was created?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    ewilen's Avatar
    ewilen is offline Moderator
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    Default

    ZZZ, what exactly is your restore procedure?

    I find it is very easy to recover deleted mail using the admin GUI. There's no need to choose a particular backup to restore from. However, you must choose to restore to a point in time (choose a time prior to the deletion, but obviously after the time the deleted object was created), and you must choose to prepend a prefix to the specified account.

    The result will be a duplicate account containing the necessary data. You should immediately edit the account to hide it in the GAL. (This prevents user confusion when doing autocomplete and other name-based lookups.) Then share the folder(s) containing the deleted items to the original account. The accoun owner can then mount the folders, copy the needed items, and dismount the folders. Finally, delete the duplicate account.

  4. #4
    ZZZ
    ZZZ is offline Junior Member
    Join Date
    Jul 2010
    Posts
    6
    Rep Power
    5

    Default

    Thanks for the replies.

    Yes, it was on 2010-06-23 when the user deleted his emails between 2010-06-18 and 2010-06-22. Since there is no full backup from 2010-06-19, I need to use the previous one from 2010-06-18 (full-20100618.220013.785).

    How can the restored mailbox contain emails newer than specified in the "Restore to a point in time" selection in the admin GUI? The restore operation seems to use the most recent backup regardless the time point I specify. The most recent backup, in this case, is not what I'm after. I tried the recovery using several timepoints prior to the date the deletion took place (2010-06-23).

    Reindexing the restored mailbox did not make a difference.

    It would be great to have "view mail" (or at least "view subjects/timestamps") feature for backups also.

    There seems to be similar issues:
    zmrestore point-in-time recovery not working

  5. #5
    ZZZ
    ZZZ is offline Junior Member
    Join Date
    Jul 2010
    Posts
    6
    Rep Power
    5

    Default

    I managed to restore 99 % of deleted mails using the following CLI command:
    zmrestore -a user@domain.com -ca -pre restored_ -lb full-20100618.220013.785 -restoreToIncrLabel incr-20100622.220015.804

    This command seems to work as expected, whereas the GUI equivalent seems to restore the most recent backup.

  6. #6
    ewilen's Avatar
    ewilen is offline Moderator
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    Default

    Probably this bug: Bug 33135 – unable to restore to point in time/incremental

    You should upgrade, not only for that, but also a bunch of bugfixes and security patches in 5.0.x.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 9
    Last Post: 05-06-2009, 01:49 AM
  2. Replies: 6
    Last Post: 03-28-2008, 11:51 AM
  3. I can't restore a mailbox to a previous state
    By DougWare in forum Administrators
    Replies: 5
    Last Post: 03-24-2008, 09:36 AM
  4. Restore mail to another user's mailbox
    By zaf in forum Administrators
    Replies: 4
    Last Post: 02-08-2008, 08:26 AM
  5. can't you help me
    By iwan siahaan in forum Administrators
    Replies: 6
    Last Post: 12-17-2007, 06:53 PM

Posting Permissions

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