« Previous entries

ZCS-to-ZCS Migrations

Posted in Community, Open Source, PowerTips - Admins, PowerTips - Users, Zimbra Server by Mike Morse on the September 30th, 2008

Someone in the forums recently asked about ways to migrate individual accounts from one ZCS instance to another, so thought I’d share the enlightenment with all. Whether you are going from an on-premise install to a hosting provider, want to create handy archives of old employee accounts, or just need to duplicate mailbox contents of a user; the syntax in this article proves remarkably useful, and applies to all editions.
ZCS-to-ZCS
There are a multitude of comparable RFE’s on addressing this need via different approaches. (Bugzilla entries 19630, 29573, 28443 & 30163 to name a few.) Some want graphical tools to browse data and selectively migrate certain things, while others would be happy with a cross LDAP zmmailboxmove.

Depending on your situation, several backup tools can take care of a large portion of your daily needs; and there are ways to do Zimbra-to-Zimbra migrations using the Network Edition’s backup and restore capabilities - however they require admin abilities on both systems. Meanwhile, most of the frequently used open source backup solutions are simply an “all accounts at-once” approach. So what to do when you need to move from your personal setup to a hosting provider? Or if you’re a hosting provider, move a tiny handful of accounts to a separate infrastructure? Before diving into the wiki on user migration for info on Imapsync, REST exports, CURL imports, etc; there’s a handy way to avoid the “one item type at-a-time” transfer methods.

In ZCS 5.0.9+ you can export an entire mailbox with:
/opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL “//?fmt=tgz” > /tmp/account.tgz

Next transfer via rsync, scp, sftp, etc. You’ll also need to create the account on the 2nd server if the desired account doesn’t exist at your destination server yet.

Then import with:
/opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL “//?fmt=tgz&resolve=reset” /tmp/account.tgz

The resolve= paramater has several options:

  • “skip” ignores duplicates of old items, it’s also the default conflict-resolution.
  • “modify” changes old items.
  • “reset” will delete the old subfolder (or entire mailbox if /).
  • “replace” will delete and re-enter them.

‘Reset’ will be a bit faster on an empty destination mailbox because it skips most dupe checks.

Note: There were some duplication fixes and additional issues (mainly sync related) corrected with the tar formatter in 5.0.10.

Not a Zimbra Admin? Users can get the same zip/tar formatter on REST URL’s by visiting:
http:// server.domain.com/home/user?fmt=zip&query=is:anywhere

The zip format has been around for a long time, but doesn’t contain account & item metadata like the tar formatter automatically does:
http:// server.domain.com/home/user/?fmt=tgz

ZD Export Backup AlphaInfact, this same technique is currently used in Zimbra Desktop’s alpha backup solution.

If this approach doesn’t scale performance wise for your situation, or you simply don’t want to have everyone hit a REST URL for 30GB mailboxes all at the same time, here’s a collection of helpful scripts and other ways to systematically migrate:

Mysqldump & rsync with an interesting blob management technique: Zimbra2Zimbra

Imapsync for mail + postRestURL for contacts, calendar & filters: ZimbraMigrate (Expand the concept for tasks, documents, and briefcase items.)

Another method that could be extrapolated upon for migrations: Per User Mailbox Backup (OE Version - Zimbra :: Wiki)

Most of these solutions aren’t going to respect share permissions, but when pulling an account out of an environment that’s to be expected.

Zimlet spin-offs:
- Mail backup options for end users (.eml)
- Zimlet to save email in a txt file (.txt or html)

The above Zimlets are aimed at making quick self-copies & not for restores, but there are many methods for putting messages back into Zimbra, including tools like zmmailbox addMessge, zmlmtpinject, CURL, etc; for more info checkout these threads: Recover data from store folders & Moving Folders between users

If moving your entire server, I’m a huge fan of the install.sh -s trick when using NE backups to do so isn’t an option.


Have another method you’d like to share? Document it in the wiki & note it below, or you can discuss over in the Community Forums.


Mulberry: The Underdog Wins

Posted in Open Source, PowerTips - Users, Zimbra Server by Mike Morse on the June 3rd, 2008

iCalendar (the standard .ics not the Apple program) only gets you so far. We’ve previously covered CalDav in Apple’s iCal for Mac, but where does the CalDav field stand for Windows and Linux users? (more…)


CalDav & Leopard Goodness

Posted in PowerTips - Users, Zimbra Server by John Holder on the March 17th, 2008

For those of us who live and breath by our calendar, making sure that you always have access to it, is a must. Enter the CalDAV Protocol: A standardized way for different clients to access one calendar. Leopard’s (OS 10.5) iCal application has built in CalDav support, and it works great with Zimbra 5.0. Here’s a quick overview.

(more…)


ZimbraNotify: The Missing Linux ZCS Toaster

Posted in Community, Open Source, PowerTips - Users by Mike Morse on the February 19th, 2008

Zimbra has a toaster for Mac, and a toaster for Windows…but didn’t have a toaster for Linux until pbruna came along with his adaptation of the checkgmail program by Owen Marshall. Linux fanboys rejoice, your toaster is here (bread not included).

(more…)


The Coolest Thing Ever is Released!

Posted in Open Source, PowerTips - Users, Zimbra Web Client by John Holder on the February 13th, 2008

The coolest thing ever is highlighted in this blog post with a cool video. It took us a little longer than expected to get the extension out, but it’s ready. You need to make sure that you have the com_zimbra_dnd.zip zimlet installed on the server.

(more…)


Zindus: The Thunderbird Contacts Extension

Posted in Community, Open Source, PowerTips - Users by John Holder on the January 7th, 2008

Toolware Pty has written a very cool Thunderbird Extension for Zimbra called Zindus. It is open-source software and runs on all Thunderbird platforms including Windows, Mac OSX and Linux.

(more…)


Zimbra for Your Firefox Sidebar

Posted in PowerTips - Users, Zimbra Web Client by John Holder on the October 12th, 2007

A few days back, I saw this tip about how to add a certain web-based e-mail’s calendar to your Firefox side bar. I thought to myself, “I know we can do that, but what else can it do?”

(more…)


The Power of Search Part 2: Visual Search

Posted in PowerTips - Users by John Holder on the August 22nd, 2007

Continuing our “The Power of Search” PowerTip series, we bring you “The Power of Search Part 2: Visual Search”. Last time we discussed search bar commands. In this Zimbra User PowerTip, we will discuss how to use Zimbra’s visual advanced search.

(more…)


Aggregate Mail Using Zimbra

Posted in PowerTips - Users by John Holder on the July 10th, 2007

Many of us have several different e-mail accounts. In this User’s PowerTip, we’ll discuss how to use Zimbra to aggregate mail from other servers. This way, you only have to open one e-mail account to see all of your mail.

(more…)


Drag ‘n Drop: Minical

Posted in PowerTips - Users by John Holder on the June 11th, 2007

One of the more overlooked features of the Zimbra Web Client is the Zimbra Minicalendar.
In this User PowerTip, we will discuss how to schedule appointments with 2 clicks of the mouse using the drag ‘n drop feature. We also added the ability to download this PowerTip in PDF format.

(more…)


« Previous entries

Subscribe

Zimbra RSS Feed

Subscribe by Email



Categories


Archives