Created
January 28, 2015 16:04
-
-
Save filippo/c2e35aedd1f5de729b3b to your computer and use it in GitHub Desktop.
Revisions
-
Filippo Pacini created this gist
Jan 28, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # The command below creates a tgz file with all emails for [email protected] in .eml format: # execute as root /opt/zimbra/bin/zmmailbox -z -m [email protected] getRestURL "//?fmt=tgz" > /tmp/account.tgz # You can do the same via a REST URL: wget http://ZIMBRA.SERVER/home/[email protected]/?fmt=tgz # to restore email: /opt/zimbra/bin/zmmailbox -z -m [email protected] postRestURL "//?fmt=tgz&resolve=reset" /tmp/account.tgz # The resolve= parameter has several options: # - skip: ignores duplicates of old items, it’s also the default conflict-resolution. # - modify: changes old items. # - reset: will delete the old subfolder (or entire mailbox if /). # - replace: will delete and re-enter them.