GSTN - Zimbra Backup Restore
The default full backup is scheduled for 1:00 A.M. every Sunday. The default incremental backups are scheduled for 1:00 A.M. Monday through Saturday.
[root@gd9109 ~]# su - zimbra
Last login: Sat Sep 24 19:48:30 IST 2016
[zimbra@gd9109 ~]$ crontab -l
# BACKUP BEGIN
0 1 * * 6 /opt/zimbra/bin/zmbackup -f -a all --mail-report
0 1 * * 0-5 /opt/zimbra/bin/zmbackup -i --mail-report
0 0 * * * /opt/zimbra/bin/zmbackup -del 1m --mail-report
# BACKUP END
You can also run the backup at any time from Backups. You can run the following backup sessions on the mailbox server* Full backup of all accounts
- Incremental backup of all accounts
- Full backup of selected accounts
BACKUP:[edit]
- Go to Tools and Migration>Backups.
- In the gear icon, click Backup. The Immediate Backup dialog box opens.
- Select the source server from the drop-down list.
- Select whether to run a Full or Incremental backup.
Note:[edit]
- A full backup process backs up all the information needed to restore mailboxes, including the LDAP directory server, database, index directory, and message directory for each mailbox.
- An incremental backup process backs up the LDAP directory server and gathers all the redo log transactions written since the last incremental backup or the last full backup, if this is the first incremental since the last full backup.
Restore:[edit]
Restoring a Mailbox:[edit]
- Use the Mailbox Restore Wizard from the Backups toolbar to restore an account in the event that a user's mailbox becomes corrupt. You can restore the user account from full and incremental backup sets, and you can restore an account to a specific point in time (PIT).
- You can add a prefix to the account name to restore the mailbox to a new account.
- To restore accounts go to the Tools and Migration> Backups page.
- In the gear icon, click Restore. The Mailbox Restore Wizard opens.
- Select the account type to restore, all accounts or selected accounts. You can choose to not restore deleted accounts.
- If you select to restore individual accounts, select the account addresses to restore from the list. Click Next.
* You can also open a backup session listed in the Content pane and select the account to restore from the Accounts list.
- In the Time options section select whether to restore the latest backup which restores the latest full and incremental backups or to restore in a point in time which performs an incremental restore. If you select to restore to a point in time, select the date and time.
- In the Name options section, select whether to preserve the account names or add a prefix to each account.
- If you select to add a prefix is to each account name define the prefix to add. The default prefix is restored_.
- The Zimbra Collaboration Server account licenses used is increased when you select to restore to another account.
- In the Server options section, make sure that the path to the backup targets is correct.
- Click Next.
- Review the restore settings before you start the restore process. If you need to make changes click Previous. Otherwise click Restore.
- The restore process starts. You can click Finish to close the wizard. The restore continues.
- When the account is restored, if the COS that the account was assigned no longer exists, the default COS is assigned to the account.
You can also use Zimbra restore CLI tool by below command:
# zmrestore -ca -a pradeep.pandey@gstn.org.in -pre restore_ --skipDeletes
Above will create one new account with the id of restore_pradeep.pandey@gstn.org.in and restore all mails of Pradeep.pandey in to it and will also skip all delete operations.
Note: Please refer Zimbra CLI restore doc by below link,



