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.
Performing zimbra 8.8.12 housekeeping before migration
- axslingr
- Outstanding Member
- Posts: 256
- Joined: Sat Sep 13, 2014 2:20 am
- ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18
Re: Performing zimbra 8.8.12 housekeeping before migration
I wouldn't worry about those old ldap files. I always skip data.mdb when doing rsync because those are sparse files.
Then run this to backup the database:
As far as other housekeeping goes, you might reindex all mailboxes.
Code: Select all
rsync -avHK --delete --exclude 'data.mdb' /opt/zimbra /some/backup/location/
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