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 11-25-2010, 12:16 PM
Loyal Member
 
Posts: 85
Default Possible to restore a certain folder only?

Hi

We have just migrated to Zimbra. Our entire machine gets backed up nightly.

But what I would like to do is also keep a local backup of the entire Zimbra directory for restoring folders or emails accidentally deleted fro shared folders.

My questions are:

1. Is it possible to restore a certain folder or set of folders w/o restoring the entire Zimbra directory (don't want to restore over users folders since they continually receive mail that would then be lost)?

2. Is there a backup method (something like on of the open source backup methods listed here) that would better facilitate this?

Thanks,
Scott
Reply With Quote
  #2 (permalink)  
Old 11-27-2010, 02:50 PM
Advanced Member
 
Posts: 192
Default

As far as I know: in case you need a particular email or folder you can restore the entire mailbox to another account, e.g. restored_accountname@example.com instead of accountname@example.com. Then simply share a folder with the victim and drag&drop the lost email(s).
Reply With Quote
  #3 (permalink)  
Old 11-30-2010, 04:53 PM
Moderator
 
Posts: 1,432
Default

Hivos, I think you're answering in the context of NETWORK edition. Strafford has FOSS according to his profile.

Strafford, I assume you are downing Zimbra before doing your nightly backup. That's a baseline absolute "must" unless you have implemented something exotic.

However if you do something like this, you may be able to forego downing the server. Or at least, the concept could be used to provide backups of individual folders, as a supplement to making a backup of all of ZCS. The basic idea is to script using the built-in account-level Export feature.

These will help you get started with what you'd need to do: ZCS 6.0:Zimbra REST API Reference:Export Mailbox - Zimbra :: Wiki
ZCS 6.0:Zimbra REST API Reference - Zimbra :: Wiki

Basically, I think you could use
Code:
zmmailbox -z -m <mailbox name> getRestURL "?fmt=zip" > <filename.zip>
to backup each mailbox. You could use tgz instead of zip if you like. Then you use
Code:
zmmailbox -z -m <mailbox name> postRestURL "?fmt=zip" <filename.zip>
to restore a given account. Probably you'll want to create a dummy account to restore to, and then share whatever folder has the data you want to recover. Alternatively you could try doing folder-specific restores, or you could do folder-by folder backups for each account.

I can't promise this will be economical either in time or disk space.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
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.