Back up a Zimbra mail server by just using rsync

zimbra

I inherited management of a zimbra server whose backup system is in an unknown state. Looking at the manuals zimbra provides commands to perform backups at the application level which would be great but I am lacking disk space to use them.

So before I start moving things around to properly provision the VM and potentially breaking something in the process I would like to get a failsafe copy. Can I just get a verified copy (using rsync) of the /opt/zimbra directory and will that get everything that would need to be restored in the worst case?

Best Answer

You can make a 'backup' by copying all data from /opt/zimbra. Make sure the data is not in use by shutting down Zimbra completely or create a snapshot with the correct system tools.

To use the copy on a new/different server, you need to install exactly the same version of Zimbra on that new server and then overwrite /opt/zimbra with the data from your copy.