Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to Backup and Restore Email in Zimbra ?  (Read 5224 times)

0 Members and 1 Guest are viewing this topic.

Aby

  • Guest
How to Backup and Restore Email in Zimbra ?
« on: September 26, 2014, 09:52:30 pm »
How to Backup and Restore Email in Zimbra

This post will describes the quick steps how you can perform backup and restore in zimbra email server. Assumed that the domain example.local have one user with the email id user@exampl.local. Email administrator was requested to perform backup and restore without login to user, meaning the backup and restore task should be perform via command line using zmmailbox command. Kindly refer to below steps :

1. Make sure you have root access to zimbra email system and the backup destination should be writable by zimbra user. Create /backup and assign permission to zimbra user and group :

Code: [Select]
[root@mail-server ~]# mkdir /backup
[root@mail-server ~]# chown -R zimbra:zimbra /backup

2. As a zimbra user, issue the following command to backup the user mailbox :

Code: [Select]
[root@mail-server~]# su - zimbra
[zimbra@mail-server ~]$ zmmailbox -z -m user1@example.com.local getRestURL "//?fmt=tgz" > /backup/user1@example.com.local.tar.gz

3. As a zimbra user, issue the following command to restore the user mailbox :

Code: [Select]
[root@mail-server~]# su - zimbra
[zimbra@mail-server ~]$ zmmailbox -z -m user1@example.local postRestURL "//?fmt=tgz" > /backup/user1@example.local.tar.gz

Note : Please note that this will backup mailbox content only without user preferences.