Upgrading to zcs-4.5.1_GA_660.UBUNTU6.tgz failed.

Upgrading to zcs-4.5.1_GA_660.UBUNTU6.tgz failed.
I think it is caused by a restore from backup of the complete /opt/zimbra directory that I did two weeks ago.
The message I get is:

The system will be modified. Continue? [N] Y

Shutting down zimbra mail

Backing up ldap

bdb(): DB_ENV->log_flush: LSN of 1/5501657 past current end-of-log of 1/2146607
bdb(): Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment
bdb(): DB_ENV->log_flush: LSN of 1/5501657 past current end-of-log of 1/2146607
bdb(): Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment