Tag Archives: zimbra

Backup – restore user mailbox in Zimbra

Elegant way to backup or restore user mailbox in Zimbra.

Tested in Zimbra 8.x and works.

BACKUP user mailbox:

/opt/zimbra/bin/zmmailbox -z -m user@domain.tld getRestURL "//?fmt=zip" > /backup/dir/user@domain.tld.zip

RESTORE user mailbox:

/opt/zimbra/bin/zmmailbox -z -m user@domain.tld postRestURL "//?fmt=zip&resolve=reset" /backup/dir/user@domain.tld.zip

SOURCE:

http://blog.zimbra.com/blog/archives/2008/09/zcs-to-zcs-migrations.html

http://www.sfu.ca/~hillman/zimbra-hied-admins/msg00583.html