Page 1 of 1

Performing zimbra 8.8.12 housekeeping before migration

Posted: Tue Jul 30, 2019 12:25 am
by eaperezh
Hi,
I have the task to migrate an 8.8.12 server running on Centos 6 to Centos 7 and Zimbra 8.8.15.
I would like some recommendations are to where to perform housekeeping (old log deletion, unnecesary backups files,etc) on the 8.8.12 server

I have found this article with some related information:
https://vinayrana007.wordpress.com/2013 ... -full-100/

the opt/zimbra/zmstat has entries for as old as 2015 (this server has never,ever received maintenance in any form, not even yum update)

I believe a housekeeping on the mysql db should be needed too.

for example I have these on the server, are they safe to delete?
drwxr-xr-x. 7 zimbra zimbra 4.0K Feb 4 2015 ldap.bad
drwxr-xr-x. 7 zimbra zimbra 4.0K Feb 4 2015 ldap.bak.020415

and it contains:
-rw-------. 1 zimbra zimbra 80G Feb 4 2015 /opt/zimbra/data/ldap.bak.020415/mdb/db/data.mdb
and
-rw-------. 1 zimbra zimbra 80G Feb 4 2015 /opt/zimbra/data/ldap.bad/mdb/db/data.mdb


160 gigabytes that i can potentially avoid to transfer/backup.


thanks in advance for your advice.

Re: Performing zimbra 8.8.12 housekeeping before migration

Posted: Tue Jul 30, 2019 12:09 pm
by axslingr
I wouldn't worry about those old ldap files. I always skip data.mdb when doing rsync because those are sparse files.

Code: Select all

rsync -avHK --delete --exclude 'data.mdb' /opt/zimbra /some/backup/location/
Then run this to backup the database:

Code: Select all

/opt/zimbra/common/bin/mdb_copy /opt/zimbra/data/ldap/mdb/db /some/backup/location/zimbra/data/ldap/mdb/db
chown zimbra:zimbra /some/backup/location/zimbra/data/ldap/mdb/db/data.mdb
As far as other housekeeping goes, you might reindex all mailboxes.