• Home
    • Tech
    • Zimbra OSE Backing Up And Restoring Process

Zimbra OSE Backing Up And Restoring Process

In my future series of articles onmost requested features by Zimbra admins, I will discuss the details about the advantage and disadvantages of various manually created backup and restoration process of zimbra OSE. To understand and further clarify the topic, we are going to describe and demonstrate a manual backup and restoration process before digging deeper into the topic.

Let’s assume that we have a mail server. We need to set up a backup and restore process for it in case of any disaster.

simple-zimbra-mail-server

Steps to configure a backup process

  • Setup a secondary server with the similar OS of active/primary email server
  • Install same version of zimbra into the backup/secondary email server
    • In this case use software only option
    • ./install.sh -s
  • After the installation is completed, stop all zimbra services,
  • After successful installation, remove the zimbra configuration file from the backup server
    • #rm -rf /opt/zimbra/*
  • Setup keygen into the active/primary server. Exchange the key to backup/secondary server so that it does not prompt for authentication during rsync process
  • Now set a cronjob to rsync Zimbra files from active server to backup server
    • 00 00 * * * nice -n +19 rsync --progress -avzHS -e ssh /opt/zimbra/ root@backup_server_IP:/opt/zimbra/

With this step, a complete and incremental backup will be copied into the backup server. But the backup server is not properly functional yet.

Steps to configure restoration process

In case of any disaster, we need to follow the below-mentioned steps to reactivate the backup server.

  • Modify the logical configurations. i.e /etc/hosts, /etc/hostname, ip_address if necessary
  • Fix permission of the backup server
    • /opt/zimbra/libexec/zmfixperms -extended -v
  • Now again install the Zimbra into the backup server using platform-override option
    • ./install.sh –platform-override
  • After successful installation, reboot the server and all Zimbra services.

Now, these processes are so much complex and need critical technological knowledge to operate. There are few alternatives to backup and restoration mechanisms available on the web. But all of them are complex and unreliable.

Please check this Zimbra wiki page to see another alternative to this backup and restoration process.

Although some of these methods are listed on the Zimbra wiki page, executing them can be challenging and required extensive technical skills.

Whereas we can easily overcome the situation if we adopt the Zextras backup solution which has a graphical operational portal. Comparatively easy to use.

I am leaving some reference links if you’re interested in learning more:

  1. https://wiki.zimbra.com/wiki/Backing_up_and_restoring_Zimbra_(Open_Source_Version)#Another_option
  2. https://www.zextras.com/backup/
  3. https://community.zextras.com/zextras-suite-advanced-backup-and-restore-system-for-zimbra/
  4. https://github.com/lucascbeyeler/zmbackup
  5. https://tamlx.wordpress.com/2016/01/05/script-backup-zimbra-mail/

Post your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Zextras Suite 3.6.0
External Content Extractor for Zimbra with Zextras Suite