Results 1 to 4 of 4

Thread: Restore From Backup

  1. #1
    Join Date
    Oct 2008
    Posts
    51
    Rep Power
    6

    Default Restore From Backup

    I have been backing up e-mail with zmmailbox with command:

    /opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL "//?fmt=zip&query=is:anywhere" > $BUL/zimbra/user.weekly.zip

    I've tested restoring the above with command:

    /opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL “//?fmt=zip&resolve=reset” /archive/zimbra/user.weekly.zip

    With my testing these backups appeared to be 100% good.

    I am in a situation where I need to process an actual recovery. When I restore the data it appears to only be restoring data from the date of the very first time this backup was run. I did not notice this in my testing.

    When I manually open the .zip file all of the new e-mails are present.

    These new e-mails are not being restored when I run the restore command via the command console.

    These e-mail accounts have up to 40G of e-mails, and they just stop importing after a time if I import via the Zimbra import area under the preference section in the Zimbra web portal. However it appears that all the e-mails are being processed this way before they simply stop working.

    I've started researching, and I was hoping to get some helpful suggestions on what I should be doing to restore these messages.

    Is this a database issue?

    Thanks for the helpful suggestions.

  2. #2
    Raunaq's Avatar
    Raunaq is offline Zimbra Employee
    Join Date
    Nov 2012
    Location
    Bangalore
    Posts
    173
    Rep Power
    2

    Default

    You can backup account using zmbackup utility as

    zmbackup -f -a account@domain.com -s server1.domain.com

    and restore this by

    zmrestore -a account@domain.com

    Hope this helps

  3. #3
    Join Date
    Oct 2008
    Posts
    51
    Rep Power
    6

    Default

    Thank you for the reference for suggested backups using the network edition product. For reference sake zmbackup is available only with the network edition product.
    Last edited by dave.gill@yourpcknights.c; 02-15-2013 at 09:02 AM.

  4. #4
    Join Date
    Oct 2008
    Posts
    51
    Rep Power
    6

    Default

    For reference my resolution for this issue was to extract the .zips and import data manually with:
    # for i in *.eml ; do /opt/zimbra/bin/zmmailbox -z -m user@domain.com addMessage /folder/in/zimbra "$i" ; done

    The folder you are importing to exampled /folder/in/zimbra needs to exist in zimbra. You need to be in the directory where the e-mail is that you need to import into zimbra. So after you extract the .zip move into that directory then run this command. This is very time consuming. It is not realistic for large facilities. However if you are large facility you should be using network edition...

    My estimation of the source of the issue is either a memory error, or some issue with .zip files not storing meta data. As of yet, tgz have been testing well for me. However .zip files passed all of my testing.

    I have changed the backup for this server to .tgz referenced in this site:
    ZCS-to-ZCS Migrations :: Zimbra :: Blog

    At a later time I will be switching my backup procedure to the "hot" backup on this site:
    Backing up and restoring Zimbra (Open Source Version) - Zimbra :: Wiki

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
    By voxuantupc in forum Administrators
    Replies: 2
    Last Post: 01-21-2013, 07:05 AM
  2. Replies: 7
    Last Post: 01-07-2013, 04:50 PM
  3. backup and restore
    By voxuantupc in forum Administrators
    Replies: 6
    Last Post: 10-23-2010, 05:03 AM
  4. Need help on Backup Restore
    By jayarajmohan in forum Administrators
    Replies: 1
    Last Post: 07-20-2009, 11:09 PM
  5. 4.5.1 backup 4.5.6 restore
    By padraig in forum Administrators
    Replies: 2
    Last Post: 07-04-2007, 02:11 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
  •