Performing zimbra 8.8.12 housekeeping before migration

Looking to migrate to ZCS? Ask here. Got a great tip or script that helped you migrate? Post it here.
eaperezh
Advanced member
Advanced member
Posts: 71
Joined: Fri Sep 12, 2014 10:05 pm

Performing zimbra 8.8.12 housekeeping before migration

Postby eaperezh » Tue Jul 30, 2019 12:25 am

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.


axslingr
Advanced member
Advanced member
Posts: 169
Joined: Sat Sep 13, 2014 2:20 am
ZCS/ZD Version: Release 8.8.11.GA.3737.UBUNTU16.64

Re: Performing zimbra 8.8.12 housekeeping before migration

Postby axslingr » Tue Jul 30, 2019 12:09 pm

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.

Return to “Migration”

Who is online

Users browsing this forum: No registered users and 2 guests