I've been doing some testing to handle individual mailbox backup / restore on an Ubuntu 10.04.3 LTS with Zimbra 7.1.3 OSE.
There seems to be content differences when specifying zip verses tgz yet there is no documentation that these formats access different content.
Reference:
REST API
For example:
Code:
/opt/zimbra/bin/zmmailbox -z -m user@mydomain.com getRestURL "?fmt=zip" > /tmp/archive.zip
The above creates a file with the following folders (there are single files in the sub-folders but no files in the root):
archive.zip = 77 kb, (7 folders, 68 files)
Code:
Briefcase/
Contacts/
Deleted Messages/
Inbox/
Sent/
Sent Messages/
Code:
/opt/zimbra/bin/zmmailbox -z -m user@mydomain.com getRestURL "?fmt=tgz" > /tmp/archive.tgz
The above creates a file with the following folders and files:
archive.tgz = 77 kb, (10 folders, 179 files)
Code:
Briefcase/
Calendar
Contacts/
Conversations
Deleted Messages/
Emailed Contacts
Inbox/
Sent/
Sent Messages/
Tasks
00000000011-ROOT.meta
00000000001-USER_ROOT.meta
00000000016-Briefcase.meta
00000000010-Calandar.meta
etc.
I then test what data is actually restored by purging all content in all areas of the account and then issue the following command:
Code:
/opt/zimbra/bin/zmmailbox -z -m user@mydomain.com postRestURL "?fmt=zip" /tmp/archive.zip
When I check the account using web mail, I see the inbox messages, sent items, contacts, emailed contacts.
Missing Calendar items, tasks and briefcase docs!
I then purge all content in all areas of the account and then issue the following command:
Code:
/opt/zimbra/bin/zmmailbox -z -m user@mydomain.com postRestURL "?fmt=tgz" /tmp/archive.tgz
When I check the account using web mail, I see the inbox messages, sent items, contacts, emailed contacts, calendar items, tasks and briefcase files.
Is this a bug or am I misunderstanding how this works?
LHammonds