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 08-27-2009, 03:39 PM
Member
 
Posts: 13
Question [SOLVED] Backup / Restore with tgz formatter

Hello,

I am using these 2 commands for migrating accounts from server 1 to server 2 (both in the same version) :

Code:
/opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL “//?fmt=tgz” > /tmp/account.tgz
and

Code:
/opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL “//?fmt=tgz&resolve=reset” /tmp/account.tgz
But now I want to use the same method for a 'update' operation on the same server for a test from version 5.0.18 to 6RC1

But it seems that the tgz file resulting in the backup on version 5 in not compatible with tgz for version 6 ???

As I can't use imapsync, what other tool I can use ?

Thanks.

PS : sorry, but this post should be in the 'Migration' forum.

Last edited by iXô; 08-27-2009 at 03:40 PM.. Reason: wrong forum notice
Reply With Quote
  #2 (permalink)  
Old 08-28-2009, 12:59 AM
Member
 
Posts: 13
Default

Can I just copy the 'store' folder ?

What will I loose if I use this trick ? I read that I may loose 'metadata', ok but what are metadata ?

With this trick, if think that the index is not copied too, is the index can be recreated ? what is it used for ?

And what about the database ? as between v5 et v6 schema as changed, I don't know how to reimport data from the database. Is it really important ?


Thanks.
Reply With Quote
  #3 (permalink)  
Old 08-28-2009, 01:11 AM
Member
 
Posts: 13
Default

Here is the ouput that the version 6 gave me for a restoration of a backup of the version 5.0.18 :

Code:
ERROR: service.FAILURE (system failure: POST failed, status=500 system failure: tgz formatter failure)
com.zimbra.common.service.ServiceException: system failure: POST failed, status=500 system failure: tgz formatter failure
ExceptionId:main:1251446767295:aaf27a255c491475
Code:service.FAILURE
	at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:251)
	at com.zimbra.cs.zclient.ZMailbox.postRESTResource(ZMailbox.java:2624)
	at com.zimbra.cs.zclient.ZMailboxUtil.doPostRestURL(ZMailboxUtil.java:2691)
	at com.zimbra.cs.zclient.ZMailboxUtil.execute(ZMailboxUtil.java:1114)
	at com.zimbra.cs.zclient.ZMailboxUtil.main(ZMailboxUtil.java:2574)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.zimbra.common.util.ConsoleRunner.main(ConsoleRunner.java:96)
Reply With Quote
  #4 (permalink)  
Old 08-28-2009, 09:00 AM
Member
 
Posts: 13
Default

Nervermind, I managed to use imapsync finally.
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.