To export the mailbox for user@domain.com as a zip file use this command:
/opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL \
‘//?fmt=zip&query=is:anywhere’ > user_at_domain.com.zip
‘//?fmt=zip&query=is:anywhere’ > user_at_domain.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
“//?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
“//?fmt=tgz&resolve=reset” /tmp/account.tgz






No comments:
Post a Comment