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

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 09-23-2008, 01:11 PM
Member
 
Posts: 13
Default Upgrading from FOSS to NE

We have Zimbra 5.0.0_RC1_1538.F7 FOSS version on Fedora 9

We have purchased a new RHE5 server and have downloaded zcs-NETWORK-5.0.9_GA_2533.RHEL5.20080815101705.

I need to place the mailboxes from the FOSS version to the new Network version and I need to maintain all the shared address books and calendars.

What is the best way to do this?

Can I just setup the new server and "restore" the mailboxes to it?

I can sense this is not going to be an easy project, but I can pray.
Reply With Quote
  #2 (permalink)  
Old 09-23-2008, 01:51 PM
Moderator
 
Posts: 6,237
Default

Backup
Upgrade your 5.0.0RC1 FC7 > 5.0.9 FOSS FC7
To change servers & platforms: Moving ZCS to Another Server » Zimbra :: Blog (note the ./install.sh -s trick in step 3)
Upgrade 5.0.9 FOSS RHEL5 > 5.0.9 NE RHEL5

You could do some of this in less steps, but it allows easier troubleshooting doing it in multiple parts.
Reply With Quote
  #3 (permalink)  
Old 09-23-2008, 01:55 PM
Moderator
 
Posts: 6,237
Default

*I quick edited the post - there's no NE FC7:

Backup
Upgrade your 5.0.0RC1 FC7 > 5.0.9 FOSS FC7
To change servers & platforms (5.0.9 FOSS FC7 > 5.0.9 FOSS RHEL5): Moving ZCS to Another Server » Zimbra :: Blog (note the ./install.sh -s trick in step 3)
Upgrade 5.0.9 FOSS RHEL5 > 5.0.9 NE RHEL5
Reply With Quote
  #4 (permalink)  
Old 09-23-2008, 02:10 PM
Member
 
Posts: 13
Default

Thanks mmorse

One more question

We were going to test out the NE version and as we purchased a new server for this, we were going to test it by moving the mailboxes from one to the other.

Is there away to do this without having to name the server the same? For example the original server is at a Co-Location and the new one is at the Office for the time being.

I hope that made sense.
Reply With Quote
  #5 (permalink)  
Old 09-23-2008, 02:21 PM
Moderator
 
Posts: 6,237
Default

Right now there's no cross LDAP instance zmmailboxmove, and you don't have any backup feature to use yet, so some ideas (minus share permissions):

Imapsync is just mail so you'd have to export other stuff using additional methods. User Migration - Zimbra :: Wiki

ZimbraMigrate is handy and incorporates Imapsync + REST for contacts, calendars, and filters in one tool: SourceForge.net: ZCS Tools

Or grab .eml & .metadata-

Export:
zmmailbox -z -m user@domain.com getRestURL "//?fmt=tgz" > /tmp/user.tgz

Import:
zmmailbox -z -m user@domain.com postRestURL "//?fmt=tgz&resolve=reset" /tmp/user.tgz

(Transfer them via rsync etc.)

The resolve= parameter has several options:
-"skip" ignores duplicates of old items (the default resolution).
-"modify" changes old items.
-"reset" will delete the old subfolder (or entire mailbox if /).
-"replace" will delete and re-enthem. (Reset will be a bit faster on an empty destination mailbox because it skips most dup checks.)

Don't remember when we added .tgz, works reliably fresh in 5.0.9 (with some additional duplication fixes in 5.0.10) - but going back far into the past there's the .zip formatter:
http:// server.domain.com/user/~/?fmt=zip&query=is:anywhere

(might prove interesting on 10G mailboxes - I haven't tried)

You have so many methods for putting messages back into Zimbra; CURL/zmmailbox addMessge/zmlmtpinject etc:
Recover data from store folders
Moving Folders between users

Zimlets that use this idea - more for self backups (not restore)
Mail backup options for end users? (.eml)
zimlet to save email in a txt file (.txt or html)

RFE's:
Bug 19630 - Migration Tool zimbra to zimbra
Bug 29573 - Enhance 'zmmailboxmove' to move mailboxes between different ZCS version
Bug 30163 - zimbra-zimbra migration via tar formatter

Last edited by mmorse; 09-23-2008 at 02:23 PM..
Reply With Quote
  #6 (permalink)  
Old 09-24-2008, 02:22 PM
Member
 
Posts: 13
Default

mmorse,

Thank you very much for your information. We are backing up everyones email that are longer working on our projects and removing them.

Export:
zmmailbox -z -m user@domain.com getRestURL "//?fmt=tgz" > /tmp/user.tgz


We are using your script above and it works great.

We are running into difficulty with one mailbox, the user greated all his email folders in the top level and not under the inbox as everyone else did. So his mailbox is 213MB and yet I am only exporting 112MB, most of the folders are missing.

So I tried moving them back under the inbox, but this did not work, so I recreated all the subfolders and moved the corresponding mail to those boxes. This has not resolved it either.

I am thinking I need to make the db sync or something that would make sure the backend is correct with what the frontend is showing.

I hope that makes sense
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.