Backup and restore of huge mailboxes

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
nighthawk
Posts: 7
Joined: Sun Sep 08, 2019 4:49 pm

Backup and restore of huge mailboxes

Postby nighthawk » Sun Sep 08, 2019 4:57 pm

Hi to all.

I'm migrating from 8.8.11 on a machine with Ubuntu 14.04 to the 8.8.15 on a machine with Ubuntu 18.04.

I'm facing the big problem of creating backup of account with more than 1k emails per folder. The tgz or zip file created with zmmailbox -z -m $mbox getRestURL "//?fmt=zip" or the tgz version has a very problematic structure like

Inbox
Inbox!1
Inbox!2
etc... etc..

Obviously, when restored, the other machine replicate this wrong structure.

Please keep in mind that folders (Inbox!1 Inbox!2 etc...) are not present if visiting the mailbox via webmail or mail client.

How can I solve this issue?

Any other faced this problem?

Thank you

Andrew


phoenix
Ambassador
Ambassador
Posts: 26325
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Backup and restore of huge mailboxes

Postby phoenix » Sun Sep 08, 2019 5:12 pm

Use the ZeXtras migration tool.
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
nighthawk
Posts: 7
Joined: Sun Sep 08, 2019 4:49 pm

Re: Backup and restore of huge mailboxes

Postby nighthawk » Sun Sep 08, 2019 9:18 pm

Hi Phoenix and thank you for your answer.

We don't need all the features of ZeXtras suite. There is the possibility to get only the migration tool?

So it is possible that there is a "huge" bug in zmmailbox backup procedure that subdivide the mails in different folders if the number of the email per folder exceed 1000mails?

Thank you

Andrew
User avatar
L. Mark Stone
Elite member
Elite member
Posts: 2025
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine
ZCS/ZD Version: 8.8.12 Network Edition
Contact:

Re: Backup and restore of huge mailboxes

Postby L. Mark Stone » Sun Sep 08, 2019 9:31 pm

nighthawk wrote:Hi Phoenix and thank you for your answer.

We don't need all the features of ZeXtras suite. There is the possibility to get only the migration tool?

So it is possible that there is a "huge" bug in zmmailbox backup procedure that subdivide the mails in different folders if the number of the email per folder exceed 1000mails?

Thank you

Andrew


To my understanding the "bugs" are in the import portion of the tgz export/import process.

You can always use IMAPSYNC as an alternative, and just export/import users' calendars and address books.

The Migration Tool is limited in functionality as you can only do an Export backup from the source (old) server, which means to avoid losing any mail, you need to quiesce Zimbra while the Export is running. Installing the Trial version of ZeXtras Suite on the source server then gets you the full ZeXtras backups, so you can be running Real Time Backups for a while, then just shut down Zimbra and do a final rsync of the backups over to the new server and start the import process near immediately.

Hope that helps,
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
Zeta Alliance http://www.zetalliance.org/
nighthawk
Posts: 7
Joined: Sun Sep 08, 2019 4:49 pm

Re: Backup and restore of huge mailboxes

Postby nighthawk » Sun Sep 08, 2019 9:37 pm

Thanks Mark
The bug is in the creation of backup file.

The various fancy folders are present in the tgz file so the restore procedure do what it was designed for.

I'll give a try to Zextras but I'd really want to understand how to get rid of this becouse we run a backup every day and I need that the backup are consistent and good to use.

Thanks again
nighthawk
Posts: 7
Joined: Sun Sep 08, 2019 4:49 pm

Re: Backup and restore of huge mailboxes

Postby nighthawk » Sun Sep 08, 2019 9:40 pm

Seems that Zextras is not compatible with Zimbra 8.8.15.....
User avatar
L. Mark Stone
Elite member
Elite member
Posts: 2025
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine
ZCS/ZD Version: 8.8.12 Network Edition
Contact:

Re: Backup and restore of huge mailboxes

Postby L. Mark Stone » Sun Sep 08, 2019 9:53 pm

nighthawk wrote:Seems that Zextras is not compatible with Zimbra 8.8.15.....


What do you mean? Works fine for me.

Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
Zeta Alliance http://www.zetalliance.org/
Klug
Elite member
Elite member
Posts: 2353
Joined: Mon Dec 16, 2013 11:35 am
Contact:

Re: Backup and restore of huge mailboxes

Postby Klug » Mon Sep 09, 2019 9:58 am

https://forums.zextras.com/zextras-migr ... l#post8205
Officially, ZxMig is not working as an export tool for server running ZCS 8.7.11 and newer.
You have to use the ZeXtras backup tool.
However, you can export from older servers with ZxMig then import to 8.8.15.

ZeXtras by itself is very compatible with 8.8.15 8-)
nighthawk
Posts: 7
Joined: Sun Sep 08, 2019 4:49 pm

Re: Backup and restore of huge mailboxes

Postby nighthawk » Mon Sep 09, 2019 11:46 am

Hi Klug

Thank you for all the information.

So with Zextras I can migrate from 8.8.12 up to 8.8.15 without problems. Right?

Right now I'm trying to reconstruct the TGZ file by hand or with a script that let me compact all the messages in the "default" folders.

In any case I think this is a huge bug in zimbra that must be corrected... don't you think? Why a folder can't contain more than 500 messages?
Thank you
nighthawk
Posts: 7
Joined: Sun Sep 08, 2019 4:49 pm

Re: Backup and restore of huge mailboxes

Postby nighthawk » Mon Sep 09, 2019 1:24 pm

There is another method of backup an installation of zimbra rather than using zmmailbox?

Thank you!

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 4 guests