I know that the topic of backing up the Open Source Edition of Zimbra has been discussed several times, but I'd like to give it a different approach rather than backup up the whole /opt/zimbra directory.
What I'd like to know is what to backup and where it is stored, despite of whether I would/could do a hot or cold backup (it does not worry me at the moment).
So far, I think that this is what I need to backup:
- LDAP directory, located at /opt/zimbra/openldap-data. Could use /opt/zimbra/libexec/zmslapcat to back it up.
- Mailboxes, located at /opt/zimbra/store. Could stop the Zimbra Store and copy the contents, then start the Zimbra Store again.
- MySQL with configuration data. Could dump the contents of the MySQL database inside /opt/zimbra/db/data using mysqldump.
Now first question is whether I am missing something else (apart from the logs and the statistics, which I would not be backing up). I know the backup would not be perfect, but provided that I stop Zimbra Store, it should be quite coherent, shouldn't it? Also, I don't mind about the mails in the Postfix queue: they will eventually be delivered and backup up the next time.
And second question is about restoring. If:
- I install a Zimbra from scratch in a similar or exact way as it was originally.
- Restore the LDAP data
- Restore the MySQL database
- Copy the mailboxes to /opt/zimbra/store
Is there any "check and regenerate" script (or set of) that I could call in order to get things back to where they were?
I mean, it's not perfect, I know. But for that I have my customer, which pay for the Network Edition. I just want a reasonable backup for my personal mail.