Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-17-2008, 10:00 AM
Loyal Member
 
Posts: 88
Default Restoring mails, folders and calendars

I guess this question comes under the general heading of "is there a better way?".

I have Zimbra NE 5.0.2 and get occasional requests for restore. There is one thing that's easy to restore: whole mailboxes. But far more common in my experience are requests to restore individual mails or folders or calendars deleted in error.

As far as I know, the best way for each of these is:

Restoring a distribution list
Distribution lists aren't backed up as far as I know, so there isn't a formal restore. The best way I've come across is, assuming the list was recently used, to recreate it from the entries in zimbra.log.

Restoring an individual mail
To restore a deleted email, restore the whole account under a different name (e.g. restored_user@mycompany.com). The mail can be transferred across using IMAP, but only by the user (or someone else who knows the account password). Alternatively, there's a way to do it using zmmailbox, but I haven't figured it out myself or found it documented anywhere.

Restoring a mail folder
Although I haven't got it to work myself, Troy Adams has written a perl script to transfer the contents of a folder from one mailbox to another
Restore mail to another user's mailbox

Additionally, imapsync can be used (again, as long as you know the destination password).

Both methods assume you've already restored the whole account from backup.

Restoring a calendar
Kevin Miller has a method for restoring a calendar by exporting it from the restored account as an ics file, then importing it into the real account using curl. Again, you seem to need to know the destination password and, again, it's messy, but it works.
Restore User Calendar.

Again, this assumes you've first restored the whole account from backup.

What seems to be missing is a set of administration tools to easily perform these tasks: to backup distribution lists in the first place and then to copy or move a folder or message from one account to another.
Reply With Quote
  #2 (permalink)  
Old 03-17-2008, 10:10 AM
Moderator
 
Posts: 6,237
Default

FYI:
Quote:
Originally Posted by dkarp
Zimbra does support AUTH=PLAIN. You should be able to authenticate as a target user using only an admin username/password and the target username -- no user passwords are referenced in this case.
So you'd have like:
Quote:
Originally Posted by mmorse
imapsync --host1 source.server.com --user1 username --authuser1 adminusername --password1 adminpassword --ssl1 --port1 993 --host2 destination.server.com --user2 username --password2 password --authmech2 PLAIN --ssl2 --port2 993 --syncinternaldates --subscribe --nosyncacls

or

imapsync --syncinternaldates --subscribed --host1 sourceserver --host2 destinationserver --user1 userAcctSrc --authuser1 adminUserSrc --password1 adminPassDest --user2 useracctondest --authuser2 adminUserDest --password2 adminPassDest --ssl1 --port1 num --ssl2 --port2

If not already zimbraImapSSLServerEnabled should be set TRUE because AUTH=PLAIN requires TLS encoding, so an IMAPs or STARTTLS command on a normal IMAP connection.
Adjust the above as both accounts are on the same server.
Reply With Quote
  #3 (permalink)  
Old 03-17-2008, 10:11 AM
Moderator
 
Posts: 6,237
Default

Bug 8849 - More Granular Restore: per folder & per-message
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.