Pathetically convoluted, but successful recovery process Here are the exact final steps that allowed me to recover from my backup. Honestly, this is pretty much a bad joke that it took all of this.
1. Backup /opt/zimbra (I tgz'ed it)
2. Download a fresh tgz of the Zimbra release, preferably the same architecture and version
3. Install on the new machine, which should have the same DNS and MX settings with the command ./install.sh -s
4. rm -rf /opt/zimbra
5. Untar the original backup to /opt/zimbra, and run this:
su - zimbra
/opt/zimbra/openldap/sbin/slapcat -f /opt/zimbra/conf/slapd.conf -l /tmp/ldap.ldif
6. Copy the /opt/zimbra/conf/slapd.conf and /opt/zimbra/conf/localconfig.xml to a safe place
7. rm -rf /opt/zimbra (which will be the backup...make sure you kept the original backup as a tgz so you can unzip it again)
8. Re-install from the original distribution with the -s option
9. Copy the backup of slapd.conf to /opt/zimbra/conf
10. Run this command:
su - zimbra
/opt/zimbra/openldap/sbin/slapadd -f /opt/zimbra/conf/slapd.conf -l /tmp/ldap.ldif
11. Move the /opt/zimbra/openldap-data directory to a safe place
12. rm -rf /opt/zimbra
13. Unzip from the backup again
14. Delete the /opt/zimbra/openldap-data directory
15. Copy/move the backup of the openldap-data directory into the /opt/zimbra directory
16. Run /opt/zimbra/libexec/zmfixperms
17. Run the install.sh without the -s option. It will most likely fail.
18. Copy the original localconfig.xml into the /opt/zimbra/conf directory
19. ./install.sh again without the -s option
20. Just to even it out at a full TWENTY STEPS, write a post to the Zimbra forums complaining what a pathetically convoluted process this was. |