Written by:R Teachout4/14/2010 12:37 PM
To export the mailbox for user@acme.com as a zip file use this command:
/opt/zimbra/bin/zmmailbox -z -m user@acme.com getRestURL \ '//?fmt=zip&query=is:anywhere' > user_at_acme_com.zip
Here is the same as a tgz file:
/opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL \ “//?fmt=tgz” > /tmp/account.tgz
And here's a restore of the tgz file:
/opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL \ “//?fmt=tgz&resolve=reset” /tmp/account.tgz
Source: http://blogs.reliablepenguin.com/index.php/2009/03/02/export-zimbra-mailbox
0 comment(s) so far...